Explorar o código

auth: Fix typos

(cherry picked from commit ba3f7d5157819d55a67a054de1b7d0f8fc521140)
Bastian Triller %!s(int64=3) %!d(string=hai) anos
pai
achega
141183abad
Modificáronse 2 ficheiros con 7 adicións e 7 borrados
  1. 1 1
      src/modules/auth/challenge.c
  2. 6 6
      src/modules/auth/nonce.c

+ 1 - 1
src/modules/auth/challenge.c

@@ -81,7 +81,7 @@ void strip_realm(str* _realm)
  * @param nonce_len A value/result parameter. Initially it contains the
  * @param nonce_len A value/result parameter. Initially it contains the
  *                  nonce buffer length. If the length is too small, it
  *                  nonce buffer length. If the length is too small, it
  *                  will be set to the needed length and the function will
  *                  will be set to the needed length and the function will
- *                  return error immediately. After a succesfull call it will
+ *                  return error immediately. After a successful call it will
  *                  contain the size of nonce written into the buffer,
  *                  contain the size of nonce written into the buffer,
  *                  without the terminating 0.
  *                  without the terminating 0.
  * @param cfg This is the value of one of the three module parameters that
  * @param cfg This is the value of one of the three module parameters that

+ 6 - 6
src/modules/auth/nonce.c

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