...
|
...
|
@@ -158,12 +158,12 @@ inline static int calc_bin_nonce_md5(union bin_nonce* b_nonce, int cfg,
|
158
|
158
|
* This function creates the nonce string as it will be sent to the
|
159
|
159
|
* user agent in digest challenge. The format of the nonce string
|
160
|
160
|
* depends on the value of three module parameters, auth_checks_register,
|
161
|
|
- * auth_checks_no_dlg, and auth_checks_in_dlg. These module parameters
|
162
|
|
- * control the amount of information from the SIP requst that will be
|
|
161
|
+ * auth_checks_no_dlg and auth_checks_in_dlg. These module parameters
|
|
162
|
+ * control the amount of information from the SIP request that will be
|
163
|
163
|
* stored in the nonce string for verification purposes.
|
164
|
164
|
*
|
165
|
165
|
* If all three parameters contain zero then the nonce string consists
|
166
|
|
- * of time in seconds since 1.1. 1970 and a secret phrase:
|
|
166
|
+ * of time in seconds since 1.1.1970 and a secret phrase:
|
167
|
167
|
* <expire_time> <valid_since> MD5(<expire_time>, <valid_since>, secret)
|
168
|
168
|
* If any of the parameters is not zero (some optional checks are enabled
|
169
|
169
|
* then the nonce string will also contain MD5 hash of selected parts
|
...
|
...
|
@@ -175,7 +175,7 @@ inline static int calc_bin_nonce_md5(union bin_nonce* b_nonce, int cfg,
|
175
|
175
|
* @param nonce_len A value/result parameter. Initially it contains the
|
176
|
176
|
* nonce buffer length. If the length is too small, it
|
177
|
177
|
* will be set to the needed length and the function will
|
178
|
|
- * return error immediately. After a succesfull call it will
|
|
178
|
+ * return error immediately. After a successful call it will
|
179
|
179
|
* contain the size of nonce written into the buffer,
|
180
|
180
|
* without the terminating 0.
|
181
|
181
|
* @param cfg This is the value of one of the three module parameters that
|
...
|
...
|
@@ -187,7 +187,7 @@ inline static int calc_bin_nonce_md5(union bin_nonce* b_nonce, int cfg,
|
187
|
187
|
* @param n_id Nounce count and/or one-time nonce index value
|
188
|
188
|
* (32 bit counter)
|
189
|
189
|
* @param pf First 2 bits are flags, the rest is the index pool number
|
190
|
|
- * used if nonce counts or one-time nonces are enabled.
|
|
190
|
+ * used if nonce counts or one-time nonces are enabled.
|
191
|
191
|
* The possible flags values are: NF_VALID_NC_ID which means
|
192
|
192
|
* the nonce-count support is enabled and NF_VALID_OT_ID
|
193
|
193
|
* which means the one-time nonces support is enabled.
|
...
|
...
|
@@ -200,7 +200,7 @@ inline static int calc_bin_nonce_md5(union bin_nonce* b_nonce, int cfg,
|
200
|
200
|
* MD5(<msg_parts(auth_extra_checks)>, secret2).
|
201
|
201
|
* @param msg The message for which the nonce is computed. If
|
202
|
202
|
* auth_extra_checks is set, the MD5 of some fields of the
|
203
|
|
- * message will be included in the generated nonce.
|
|
203
|
+ * message will be included in the generated nonce.
|
204
|
204
|
* @return 0 on success and -1 on error
|
205
|
205
|
*/
|
206
|
206
|
int calc_nonce(char* nonce, int *nonce_len, int cfg, int since, int expires,
|