Browse code

auth: Fix typos

(cherry picked from commit ba3f7d5157819d55a67a054de1b7d0f8fc521140)

Bastian Triller authored on 05/05/2022 16:24:00 • Daniel-Constantin Mierla committed on 16/05/2022 08:02:55
Showing 2 changed files
... ...
@@ -81,7 +81,7 @@ void strip_realm(str* _realm)
81 81
  * @param nonce_len A value/result parameter. Initially it contains the
82 82
  *                  nonce buffer length. If the length is too small, it
83 83
  *                  will be set to the needed length and the function will
84
- *                  return error immediately. After a succesfull call it will
84
+ *                  return error immediately. After a successful call it will
85 85
  *                  contain the size of nonce written into the buffer,
86 86
  *                  without the terminating 0.
87 87
  * @param cfg This is the value of one of the three module parameters that
... ...
@@ -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,