]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix typos in lib/
authorTim Rühsen <tim.ruehsen@gmx.de>
Fri, 4 Jan 2019 08:47:24 +0000 (09:47 +0100)
committerTim Rühsen <tim.ruehsen@gmx.de>
Fri, 4 Jan 2019 16:24:55 +0000 (17:24 +0100)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
34 files changed:
lib/accelerated/cryptodev.c
lib/auth/rsa.c
lib/auth/rsa_psk.c
lib/cipher-cbc.c
lib/ext/client_cert_type.c
lib/ext/server_cert_type.c
lib/extras/hex.h
lib/global.h
lib/gnutls_int.h
lib/handshake.c
lib/includes/gnutls/abstract.h
lib/includes/gnutls/compat.h
lib/mbuffers.c
lib/nettle/gost/ecc-internal.h
lib/nettle/int/dsa-keygen-fips186.c
lib/nettle/int/rsa-keygen-fips186.c
lib/pcert.c
lib/pkcs11.c
lib/record.c
lib/str-idna.c
lib/str.c
lib/tls-sig.c
lib/x509/attributes.c
lib/x509/dn.c
lib/x509/ip-in-cidr.h
lib/x509/mpi.c
lib/x509/name_constraints.c
lib/x509/ocsp.c
lib/x509/pkcs12.c
lib/x509/time.c
lib/x509/verify-high.c
lib/x509/verify.c
lib/x509/x509_ext.c
lib/x509/x509_int.h

index 5897cc2ace0ef9d90f19f399de9e50a13379983e..8d00cfdc2a8e74e3f2356ba8a15de5f27750fbcd 100644 (file)
@@ -251,7 +251,7 @@ int _gnutls_cryptodev_init(void)
                        return GNUTLS_E_CRYPTODEV_IOCTL_ERROR;
                }
 
-               /* Set close-on-exec (not really neede here) */
+               /* Set close-on-exec (not really needed here) */
                if (fcntl(cfd, F_SETFD, 1) == -1) {
                        gnutls_assert();
                        return GNUTLS_E_CRYPTODEV_IOCTL_ERROR;
index c2203c7ed3e9f9de251e06749019b06cec019c78..d5d0943242675298ff3e4610c81019acfea61b55 100644 (file)
@@ -92,7 +92,7 @@ int check_key_usage_for_enc(gnutls_session_t session, unsigned key_usage)
  * server. Therefore the correct cert type needs to be retrieved to be
  * used for the _gnutls_get_auth_info_pcert call. If this
  * function is to be called on the server side in the future, extra
- * checks need to be build in order to retrieve te correct
+ * checks need to be build in order to retrieve the correct
  * certificate type.
  */
 int
@@ -213,12 +213,12 @@ proc_rsa_client_kx(gnutls_session_t session, uint8_t * data,
                                         session->key.key.size);
        /* After this point, any conditional on failure that cause differences
         * in execution may create a timing or cache access pattern side
-        * channel that can be used as an oracle, so tread very carefully */
+        * channel that can be used as an oracle, so treat very carefully */
 
        /* Error handling logic:
         * In case decryption fails then don't inform the peer. Just use the
         * random key previously generated. (in order to avoid attack against
-        * pkcs-1 formating).
+        * pkcs-1 formatting).
         *
         * If we get version mismatches no error is returned either. We
         * proceed normally. This is to defend against the attack described
index 644f2e8b293540896f48fb78ce2988bbd5186a21..791fcd8bb702d68201d72b42e310cabff14cfb82 100644 (file)
@@ -334,7 +334,7 @@ _gnutls_proc_rsa_psk_client_kx(gnutls_session_t session, uint8_t * data,
        if (ret < 0 || plaintext.size != GNUTLS_MASTER_SIZE) {
                /* In case decryption fails then don't inform
                 * the peer. Just use a random key. (in order to avoid
-                * attack against pkcs-1 formating).
+                * attack against pkcs-1 formatting).
                 */
                gnutls_assert();
                _gnutls_debug_log
index 741119223b135b4d5e18e755924dc686ea312d6d..2f387c523ca5ba63e4e9e605b048ced8aa88d7b4 100644 (file)
@@ -90,7 +90,7 @@ int cbc_mac_verify(gnutls_session_t session, record_parameters_st *params,
 
        pad = data[data_size - 1];      /* pad */
 
-       /* Check the pading bytes (TLS 1.x).
+       /* Check the padding bytes (TLS 1.x).
         * Note that we access all 256 bytes of ciphertext for padding check
         * because there is a timing channel in that memory access (in certain CPUs).
         */
index 534c407b3aa9995b1fba52da3d590663ce3f4ac7..0fbd4e9e4a16df54a27c7971ec882481ef0f2c0a 100644 (file)
@@ -91,7 +91,7 @@ static int _gnutls_client_cert_type_recv_params(gnutls_session_t session,
                                        gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET_LENGTH);
                }
 
-               /* The server picked one of the offered cert types iff he supports
+               /* The server picked one of the offered cert types if he supports
                 * at least one of them and decided to do a client certificate
                 * request. If both parties play by the rules then we may only
                 * receive a cert type that we offered, i.e. one that we support.
index 35c6d751db21681132582f08a4f3ff5e079f4c9f..b290b7b06ec20d9c0d1f0de83f9ed0d2a1659b50 100644 (file)
@@ -91,7 +91,7 @@ static int _gnutls_server_cert_type_recv_params(gnutls_session_t session,
                                        gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET_LENGTH);
                }
 
-               /* The server picked one of the offered cert types iff he supports
+               /* The server picked one of the offered cert types if he supports
                 * at least one of them. If both parties play by the rules then we
                 * may only receive a cert type that we offered, i.e. one that we
                 * support. Because the world isn't as beautiful as it may seem,
index e2ce3ff28a445fcb51cdef3515ea1e23bf00ea7f..15d4e6493280f3020ea20cb0789fe55872492c27 100644 (file)
@@ -7,7 +7,7 @@
 
 /**
  * hex_decode - Unpack a hex string.
- * @str: the hexidecimal string
+ * @str: the hexadecimal string
  * @slen: the length of @str
  * @buf: the buffer to write the data into
  * @bufsize: the length of @buf
index c1aa7863b5af51f89b3338d213afb52970b9d880..97b0b272817d9595e9764947aa97ffcdc87e7fdc 100644 (file)
@@ -33,7 +33,7 @@ extern ASN1_TYPE _gnutls_gnutls_asn;
 
 /* removed const from node_asn* to
  * prevent warnings, since libtasn1 doesn't
- * use the const keywork in its functions.
+ * use the const keyword in its functions.
  */
 #define _gnutls_get_gnutls_asn() ((ASN1_TYPE) _gnutls_gnutls_asn)
 #define _gnutls_get_pkix() ((ASN1_TYPE) _gnutls_pkix1_asn)
index 8baa8815e7263a4945938d83514aae631e87da14..a0c47efa0f48e3eb4d1161d1cc6892bfac7890d6 100644 (file)
@@ -1101,7 +1101,7 @@ typedef struct {
 
        bool invalid_connection;        /* true or FALSE - if this session is valid */
 
-       bool may_not_read;      /* if it's 0 then we can read/write, otherwise it's forbiden to read/write
+       bool may_not_read;      /* if it's 0 then we can read/write, otherwise it's forbidden to read/write
                                 */
        bool may_not_write;
        bool read_eof;          /* non-zero if we have received a closure alert. */
@@ -1263,7 +1263,7 @@ typedef struct {
         */
        bool ignore_rdn_sequence;
 
-       /* This is used to set an arbitary version in the RSA
+       /* This is used to set an arbitrary version in the RSA
         * PMS secret. Can be used by clients to test whether the
         * server checks that version. (** only used in gnutls-cli-debug)
         */
index d83a51c9bbd110d743be97a7324a9d5356c21277..70b4486266cb0031cb66d6c616b0978c49fb31fb 100644 (file)
@@ -1626,7 +1626,7 @@ _gnutls_recv_handshake(gnutls_session_t session,
        default:
                gnutls_assert();
                /* we shouldn't actually arrive here in any case .
-                * unexpected messages should be catched after _gnutls_handshake_io_recv_int()
+                * unexpected messages should be caught after _gnutls_handshake_io_recv_int()
                 */
                ret = GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET;
                goto cleanup;
index 223fb2ed1f4cb1fc8870309c53c35afe00a96519..0aa10185557130724e07062a31605ce492349024 100644 (file)
@@ -122,7 +122,7 @@ typedef void (*gnutls_privkey_deinit_func) (gnutls_privkey_t key,
  */
 #define GNUTLS_PRIVKEY_INFO_HAVE_SIGN_ALGO (1<<2)
 /* Should return the number of bits of the public key algorithm (required for RSA-PSS)
- * It is the value that should be retuned by gnutls_pubkey_get_pk_algorithm() */
+ * It is the value that should be returned by gnutls_pubkey_get_pk_algorithm() */
 #define GNUTLS_PRIVKEY_INFO_PK_ALGO_BITS (1<<3)
 
 /* returns information on the public key associated with userdata */
index 732b9dbeb4c6b544d91e57ba2eedf2b3925cbd2e..f81d25b47ac6773ee0d14a4e1580651a82430dc8 100644 (file)
@@ -50,7 +50,7 @@ extern "C" {
 /* gnutls_connection_end_t was made redundant in 2.99.0 */
 typedef unsigned int gnutls_connection_end_t _GNUTLS_GCC_ATTR_DEPRECATED;
 
-/* Stuff deprected in 2.x */
+/* Stuff deprecated in 2.x */
 typedef gnutls_cipher_algorithm_t gnutls_cipher_algorithm
     _GNUTLS_GCC_ATTR_DEPRECATED;
 typedef gnutls_kx_algorithm_t gnutls_kx_algorithm
index 2e4c62a295635dcf8ef4439d983ee3a11a3bcfa7..24395e6496b40e00e950464dc34612cf2e410766 100644 (file)
@@ -324,7 +324,7 @@ _mbuffer_append_data(mbuffer_st * bufel, void *newdata,
 #ifdef ENABLE_ALIGN16
 # define ALIGN_SIZE 16
 
-/* Allocate a 16-byte alligned buffer segment. The segment is not initially "owned" by
+/* Allocate a 16-byte aligned buffer segment. The segment is not initially "owned" by
  * any buffer.
  *
  * maximum_size: Amount of data that this segment can contain.
index 16d6828772642a98fefa24be4f72861bb8be5fea..21bd98cfdc45128fd2e8aac51bd68adba0114e4a 100644 (file)
@@ -127,7 +127,7 @@ struct ecc_curve
 {
   /* The prime p. */
   struct ecc_modulo p;
-  /* Group order. FIXME: Currently, many fucntions rely on q.size ==
+  /* Group order. FIXME: Currently, many functions rely on q.size ==
      p.size. This has to change for radix-51 implementation of
      curve25519 mod p arithmetic. */
   struct ecc_modulo q;
@@ -202,7 +202,7 @@ gost_hash (const struct ecc_modulo *m,
 
 /* Converts a point P in jacobian coordinates into a point R in affine
    coordinates. If op == 1, produce x coordinate only. If op == 2,
-   produce the x coordiante only, and in also it modulo q. FIXME: For
+   produce the x coordinate only, and in also it modulo q. FIXME: For
    the public interface, have separate for the three cases, and use
    this flag argument only for the internal ecc->h_to_a function. */
 void
index 30ba004e0f49a61fbbe5c0d674ac9044fd89dcf2..69f7f8cebaf67a6c05d4e6066f7ab4fbab04f284 100644 (file)
@@ -421,7 +421,7 @@ _dsa_generate_dss_pqg(struct dsa_params *params,
        if (_gnutls_fips_mode_enabled() != 0) {
                cert->seed_length = 2 * (q_bits / 8) + 1;
 
-               FIPS_RULE(cert->seed_length != seed_size, 0, "unsupported DSA seed length (is %d, shoudl be %d)\n", seed_size, cert->seed_length);
+               FIPS_RULE(cert->seed_length != seed_size, 0, "unsupported DSA seed length (is %d, should be %d)\n", seed_size, cert->seed_length);
        } else {
                cert->seed_length = seed_size;
        }
index a76e5eaa0081ddbd4ebc2648f9ba1c7b1afdb869..438101ef1d5a2b9875f3321cac475f2a95b02ce4 100644 (file)
@@ -358,7 +358,7 @@ _rsa_generate_fips186_4_keypair(struct rsa_public_key *pub,
                goto cleanup;
        }
 
-       /* Done! Almost, we must compute the auxillary private values. */
+       /* Done! Almost, we must compute the auxiliary private values. */
        /* a = d % (p-1) */
        mpz_fdiv_r(key->a, key->d, p1);
 
index 816a748b05a3e0560e4355067d0021f7c8af9fa8..23eadf12d0138bcf743e408360564dcb233c522f 100644 (file)
@@ -387,7 +387,7 @@ int gnutls_pcert_import_rawpk(gnutls_pcert_st* pcert,
        /* A pcert struct holds a raw copy of the certificate data.
         * Therefore we convert our gnutls_pubkey_t to its raw DER
         * representation and copy it into our pcert. It is this raw data
-        * that will be transfered to the peer via a Certificate msg.
+        * that will be transferred to the peer via a Certificate msg.
         * According to the spec (RFC7250) a DER representation must be used.
         */
        ret = gnutls_pubkey_export2(pubkey, GNUTLS_X509_FMT_DER, &pcert->cert);
@@ -452,7 +452,7 @@ int gnutls_pcert_import_rawpk_raw(gnutls_pcert_st* pcert,
        pcert->pubkey->key_usage = key_usage;
 
        /* A pcert struct holds a raw copy of the certificate data.
-        * It is this raw data that will be transfered to the peer via a
+        * It is this raw data that will be transferred to the peer via a
         * Certificate message. According to the spec (RFC7250) a DER
         * representation must be used. Therefore we check the format and
         * convert if necessary.
index c9745658305dfcd07b3b29a811d00815d6ff8c61..39e2799b1ede917e4bb8aa81893bc3ce574d395e 100644 (file)
@@ -1291,7 +1291,7 @@ void gnutls_pkcs11_obj_deinit(gnutls_pkcs11_obj_t obj)
  *   replaced by the actual size of parameters)
  *
  * This function will export the PKCS11 object data.  It is normal for
- * data to be inaccesible and in that case %GNUTLS_E_INVALID_REQUEST
+ * data to be inaccessible and in that case %GNUTLS_E_INVALID_REQUEST
  * will be returned.
  *
  * If the buffer provided is not long enough to hold the output, then
@@ -1329,7 +1329,7 @@ gnutls_pkcs11_obj_export(gnutls_pkcs11_obj_t obj,
  * @out: will contain the object data
  *
  * This function will export the PKCS11 object data.  It is normal for
- * data to be inaccesible and in that case %GNUTLS_E_INVALID_REQUEST
+ * data to be inaccessible and in that case %GNUTLS_E_INVALID_REQUEST
  * will be returned.
  *
  * The output buffer is allocated using gnutls_malloc().
@@ -1352,7 +1352,7 @@ gnutls_pkcs11_obj_export2(gnutls_pkcs11_obj_t obj, gnutls_datum_t * out)
  * @fmt: The format of the exported data
  *
  * This function will export the PKCS11 object data.  It is normal for
- * data to be inaccesible and in that case %GNUTLS_E_INVALID_REQUEST
+ * data to be inaccessible and in that case %GNUTLS_E_INVALID_REQUEST
  * will be returned.
  *
  * The output buffer is allocated using gnutls_malloc().
@@ -4252,7 +4252,7 @@ find_cert_cb(struct ck_function_list *module, struct pkcs11_session_info *sinfo,
  *
  * This function will return the issuer of a given certificate, if it
  * is stored in the token. By default only marked as trusted issuers
- * are retuned. If any issuer should be returned specify
+ * are returned. If any issuer should be returned specify
  * %GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY in @flags.
  *
  * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
@@ -4355,7 +4355,7 @@ int gnutls_pkcs11_get_raw_issuer(const char *url, gnutls_x509_crt_t cert,
  *
  * This function will return the certificate with the given DN, if it
  * is stored in the token. By default only marked as trusted issuers
- * are retuned. If any issuer should be returned specify
+ * are returned. If any issuer should be returned specify
  * %GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY in @flags.
  *
  * The name of the function includes issuer because it can
@@ -4440,7 +4440,7 @@ int gnutls_pkcs11_get_raw_issuer_by_dn (const char *url, const gnutls_datum_t *d
  *
  * This function will return the certificate with the given DN and @spki, if it
  * is stored in the token. By default only marked as trusted issuers
- * are retuned. If any issuer should be returned specify
+ * are returned. If any issuer should be returned specify
  * %GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY in @flags.
  *
  * The name of the function includes issuer because it can
index 73c484ed56ac8cb6fcc79efe41966868d0cdabb7..2dc997d09b0e43e3c5267f691897707a587fde8f 100644 (file)
@@ -872,7 +872,7 @@ record_add_to_buffers(gnutls_session_t session,
                                goto cleanup;
                        } else {
                                /* if the alert is FATAL or WARNING
-                                * return the apropriate message
+                                * return the appropriate message
                                 */
                                gnutls_assert();
                                ret = GNUTLS_E_WARNING_ALERT_RECEIVED;
index 8a1dce980ad047910e21c0c296d5b1a27931b062..30a09407c0f4a15e6125b69d2b6f8e9932f99df7 100644 (file)
@@ -73,7 +73,7 @@ int gnutls_idna_map(const char *input, unsigned ilen, gnutls_datum_t *out, unsig
        /* IDN2_NONTRANSITIONAL automatically converts to lowercase
         * IDN2_NFC_INPUT converts to NFC before toASCII conversion
         *
-        * Since IDN2_NONTRANSITIONAL implicitely does NFC conversion, we don't need
+        * Since IDN2_NONTRANSITIONAL implicitly does NFC conversion, we don't need
         * the additional IDN2_NFC_INPUT. But just for the unlikely case that the linked
         * library is not matching the headers when building and it doesn't support TR46,
         * we provide IDN2_NFC_INPUT. */
index f766915bc02998ba963984debe63111bf91d4acb..7757730175ad9f00243dbdc2d5958220ff65ec19 100644 (file)
--- a/lib/str.c
+++ b/lib/str.c
@@ -223,7 +223,7 @@ _gnutls_buffer_pop_datum(gnutls_buffer_st * str, gnutls_datum_t * data,
        str->data += req_size;
        str->length -= req_size;
 
-       /* if string becomes empty start from begining */
+       /* if string becomes empty start from beginning */
        if (str->length == 0) {
                str->data = str->allocd;
        }
index 87016172e2d892779ce04e0fc5a195f99241caa2..75f88e5fbdeb09cc6ae0e6ccfd3e583ff317fb3e 100644 (file)
@@ -547,7 +547,7 @@ _gnutls_handshake_verify_crt_vrfy(gnutls_session_t session,
 }
 
 /* the same as _gnutls_handshake_sign_crt_vrfy except that it is made for TLS 1.2.
- * Returns the used signature algorihm, or a negative error code.
+ * Returns the used signature algorithm, or a negative error code.
  */
 static int
 _gnutls_handshake_sign_crt_vrfy12(gnutls_session_t session,
@@ -668,7 +668,7 @@ _gnutls_handshake_sign_crt_vrfy3(gnutls_session_t session,
  * For TLS1.x, x<2 returns negative for failure and zero or unspecified for success.
  * For TLS1.2 returns the signature algorithm used on success, or a negative error code;
  *
- * Returns the used signature algorihm, or a negative error code.
+ * Returns the used signature algorithm, or a negative error code.
  */
 int
 _gnutls_handshake_sign_crt_vrfy(gnutls_session_t session,
index 4d116be4ecb1e697022cb8e134b9477ddf542653..9c83ca8414c3ba96b03d8fef04af147b04f3b172 100644 (file)
@@ -110,7 +110,7 @@ _x509_parse_attribute(ASN1_TYPE asn1_struct,
                        goto cleanup;
                }
 
-               /* Move to the attibute type and values
+               /* Move to the attribute type and values
                 */
                /* Read the OID
                 */
index 828bd9059de70db2f55c601dc9d3f3efeaf476ba..033531970d94a804bb3d2cec18dcb4a741738b65 100644 (file)
@@ -74,7 +74,7 @@ static int append_elements(ASN1_TYPE asn1_struct, const char *asn1_rdn_name, gnu
                goto cleanup;
        }
 
-       do {            /* Move to the attibute type and values
+       do {            /* Move to the attribute type and values
                                 */
                k2++;
 
@@ -359,7 +359,7 @@ _gnutls_x509_parse_dn_oid(ASN1_TYPE asn1_struct,
 
                k2 = 0;
 
-               do {            /* Move to the attibute type and values
+               do {            /* Move to the attribute type and values
                                 */
                        k2++;
 
@@ -519,7 +519,7 @@ _gnutls_x509_get_dn_oid(ASN1_TYPE asn1_struct,
 
                k2 = 0;
 
-               do {            /* Move to the attibute type and values
+               do {            /* Move to the attribute type and values
                                 */
                        k2++;
 
index 86fd8e50e484e4a10aa7a37990a942ea345dd509..8bb5dd48ae52c1f3acc1c578cd59904c300e7413 100644 (file)
@@ -30,7 +30,7 @@
  * The @ip version must match the @cidr version (v4/v6),
  * (this is not checked).
  *
- * Returns: 1 if @ip lies withing @cidr, 0 otherwise
+ * Returns: 1 if @ip lies within @cidr, 0 otherwise
  -*/
 static unsigned ip_in_cidr(const gnutls_datum_t *ip, const gnutls_datum_t *cidr)
 {
index 20a64690a3d1c8b80cd87c1f9d2fbf21d9712c13..bb914420f17d871fadac3cb1828a5e54ba037100 100644 (file)
@@ -378,7 +378,7 @@ _gnutls_x509_write_sign_params(ASN1_TYPE dst, const char *dst_name,
 }
 
 /* this function reads a (small) unsigned integer
- * from asn1 structs. Combines the read and the convertion
+ * from asn1 structs. Combines the read and the conversion
  * steps.
  */
 int
index c4d78026feb000968e48e7f48c48e218f7829b5c..a2cca38450e08e4640610b2393480a5396fb20a6 100644 (file)
@@ -242,7 +242,7 @@ static name_constraints_node_st* name_constraints_node_new(unsigned type,
  * @_nc_excluded: Corresponding excluded name constraints list
  *
  * This function finds the intersection of @_nc and @_nc2. The result is placed in @_nc,
- * the original @_nc is deallocated. @_nc2 is not chenged. If necessary, a universal
+ * the original @_nc is deallocated. @_nc2 is not changed. If necessary, a universal
  * excluded name constraint node of the right type is added to the list provided
  * in @_nc_excluded.
  *
index db54b3ea22dd3fd1098327f60a35b05ff9b2efb0..a52c4aa428dffeb747d685755fa7107a7cc36f09 100644 (file)
@@ -2575,7 +2575,7 @@ time_t _gnutls_ocsp_get_validity(gnutls_ocsp_resp_t resp)
        now = gnutls_time(0);
 
        if (ntime == -1) {
-               /* This is a problematic case, and there is no concensus on how
+               /* This is a problematic case, and there is no consensus on how
                 * to treat these responses. It doesn't contain the time after which
                 * the response is invalid, thus it is an OCSP response effectively
                 * valid forever defeating the purpose of OCSP. We set here the same
index 1f5b4bdf88b751654c207aad424c93723672062a..447eb8e2c99f6cbcec7c77500feb61aad75b33f6 100644 (file)
@@ -827,7 +827,7 @@ int gnutls_pkcs12_set_bag(gnutls_pkcs12_t pkcs12, gnutls_pkcs12_bag_t bag)
        asn1_delete_structure(&safe_cont);
 
 
-       /* Step 5. Reencode and copy the AuthenticatedSafe into the pkcs12
+       /* Step 5. Re-encode and copy the AuthenticatedSafe into the pkcs12
         * structure.
         */
        result =
index 4d2b78926824bb6ef30c3bba2237c7d9af9a5db8..2632a795a97139d926904698f4395dd79a1901c1 100644 (file)
@@ -35,7 +35,7 @@
 #include <common.h>
 
 /* TIME functions 
- * Convertions between generalized or UTC time to time_t
+ * Conversions between generalized or UTC time to time_t
  *
  */
 
@@ -69,7 +69,7 @@ static const int MONTHDAYS[] = {
 /*
  **  Given a struct tm representing a calendar time in UTC, convert it to
  **  seconds since epoch.  Returns (time_t) -1 if the time is not
- **  convertable.  Note that this function does not canonicalize the provided
+ **  convertible.  Note that this function does not canonicalize the provided
  **  struct tm, nor does it allow out of range values or years before 1970.
  */
 static time_t mktime_utc(const struct fake_tm *tm)
index 7f640f1a13cafb2d2c890a5f0c79fc799c01feba..5969b361463e9d90dfcb15208712d4cbfc7dd88d 100644 (file)
@@ -1203,7 +1203,7 @@ gnutls_x509_trust_list_verify_crt(gnutls_x509_trust_list_t list,
 /* This macro is introduced to detect a verification output
  * which indicates an unknown signer, or a signer which uses
  * an insecure algorithm (e.g., sha1), something that indicates
- * a superceded signer */
+ * a superseded signer */
 #define SIGNER_OLD_OR_UNKNOWN(output) ((output & GNUTLS_CERT_SIGNER_NOT_FOUND) || (output & GNUTLS_CERT_INSECURE_ALGORITHM))
 #define SIGNER_WAS_KNOWN(output) (!(output & GNUTLS_CERT_SIGNER_NOT_FOUND))
 
index 58acf42b86803e855c13d8483fd92f6661ab64be..d4eafd4fdd83632b7e6f02e954f49046f20ecd41 100644 (file)
@@ -593,7 +593,7 @@ static int _gnutls_x509_verify_data(gnutls_sign_algorithm_t sign,
  * trusted CAs.
  *
  * Returns only 0 or 1. If 1 it means that the certificate 
- * was successfuly verified.
+ * was successfully verified.
  *
  * 'flags': an OR of the gnutls_certificate_verify_flags enumeration.
  *
index 58c3263d1e7737fd0a21ce012342445ba950d93c..8213c6e427cc7c3111cdf19053baeb988a8d38ae 100644 (file)
@@ -453,7 +453,7 @@ int gnutls_x509_ext_import_name_constraints(const gnutls_datum_t * ext,
  *
  * This function will convert the provided name constraints type to a
  * DER-encoded PKIX NameConstraints (2.5.29.30) extension. The output data in 
- * @ext will be allocated usin gnutls_malloc().
+ * @ext will be allocated using gnutls_malloc().
  *
  * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
  *
@@ -3136,7 +3136,7 @@ int gnutls_x509_ext_import_key_purposes(const gnutls_datum_t * ext,
  *
  * This function will convert the key purposes type to a
  * DER-encoded PKIX ExtKeyUsageSyntax (2.5.29.37) extension. The output data in 
- * @ext will be allocated usin gnutls_malloc().
+ * @ext will be allocated using gnutls_malloc().
  *
  * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
  *
index bbd59d1547d5624525e353b8f80d7df5fbbab4e0..c1bacc7b2a701ef75c34bcc40fca84f9ca01a115 100644 (file)
@@ -313,7 +313,7 @@ _gnutls_x509_ext_extract_number(uint8_t * number,
                                size_t * nr_size,
                                uint8_t * extnValue, int extnValueLen);
 int
-_gnutls_x509_ext_gen_number(const uint8_t * nuber, size_t nr_size,
+_gnutls_x509_ext_gen_number(const uint8_t * number, size_t nr_size,
                            gnutls_datum_t * der_ext);