summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/x509/crl.c8
-rw-r--r--lib/x509/crq.c10
-rw-r--r--lib/x509/dn.c4
-rw-r--r--lib/x509/pkcs12.c2
-rw-r--r--lib/x509/x509.c34
5 files changed, 29 insertions, 29 deletions
diff --git a/lib/x509/crl.c b/lib/x509/crl.c
index f156b43132..b69a1c8d00 100644
--- a/lib/x509/crl.c
+++ b/lib/x509/crl.c
@@ -188,7 +188,7 @@ gnutls_x509_crl_get_issuer_dn (const gnutls_x509_crl_t crl, char *buf,
* @crl: should contain a gnutls_x509_crl_t structure
* @oid: holds an Object Identified in null terminated string
* @indx: In case multiple same OIDs exist in the RDN, this specifies which to send. Use (0) to get the first one.
- * @raw_flag: If non (0) returns the raw DER data of the DN part.
+ * @raw_flag: If non-zero returns the raw DER data of the DN part.
* @buf: a pointer to a structure to hold the peer's name (may be null)
* @sizeof_buf: initially holds the size of @buf
*
@@ -761,7 +761,7 @@ _get_authority_key_id (gnutls_x509_crl_t cert, ASN1_TYPE *c2,
* @alt_type: holds the type of the alternative name (one of gnutls_x509_subject_alt_name_t).
* @serial: buffer to store the serial number (may be null)
* @serial_size: Holds the size of the serial field (may be null)
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function will return the X.509 authority key
* identifier when stored as a general name (authorityCertIssuer)
@@ -830,7 +830,7 @@ fail:
* @crl: should contain a #gnutls_x509_crl_t structure
* @id: The place where the identifier will be copied
* @id_size: Holds the size of the result field.
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
* (may be null)
*
* This function will return the CRL authority's key identifier. This
@@ -881,7 +881,7 @@ gnutls_x509_crl_get_authority_key_id (gnutls_x509_crl_t crl, void *id,
* @crl: should contain a #gnutls_x509_crl_t structure
* @ret: The place where the number will be copied
* @ret_size: Holds the size of the result field.
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
* (may be null)
*
* This function will return the CRL number extension. This is
diff --git a/lib/x509/crq.c b/lib/x509/crq.c
index 19a7b687b5..853d145027 100644
--- a/lib/x509/crq.c
+++ b/lib/x509/crq.c
@@ -261,7 +261,7 @@ gnutls_x509_crq_get_dn (gnutls_x509_crq_t crq, char *buf, size_t * sizeof_buf)
* @oid: holds an Object Identified in null terminated string
* @indx: In case multiple same OIDs exist in the RDN, this specifies
* which to send. Use (0) to get the first one.
- * @raw_flag: If non (0) returns the raw DER data of the DN part.
+ * @raw_flag: If non-zero returns the raw DER data of the DN part.
* @buf: a pointer to a structure to hold the name (may be %NULL)
* @sizeof_buf: initially holds the size of @buf
*
@@ -1572,7 +1572,7 @@ gnutls_x509_crq_get_extension_data (gnutls_x509_crq_t crq, int indx,
* gnutls_x509_crq_get_key_usage:
* @crq: should contain a #gnutls_x509_crq_t structure
* @key_usage: where the key usage bits will be stored
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
*
* This function will return certificate's key usage, by reading the
* keyUsage X.509 extension (2.5.29.15). The key usage value will
@@ -1629,7 +1629,7 @@ gnutls_x509_crq_get_key_usage (gnutls_x509_crq_t crq,
/**
* gnutls_x509_crq_get_basic_constraints:
* @crq: should contain a #gnutls_x509_crq_t structure
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
* @ca: pointer to output integer indicating CA status, may be NULL,
* value is 1 if the certificate CA flag is set, 0 otherwise.
* @pathlen: pointer to output integer indicating path length (may be
@@ -1777,7 +1777,7 @@ get_subject_alt_name (gnutls_x509_crq_t crq,
* @ret: is the place where the alternative name will be copied to
* @ret_size: holds the size of ret.
* @ret_type: holds the #gnutls_x509_subject_alt_name_t name type
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
* (may be null)
*
* This function will return the alternative names, contained in the
@@ -1852,7 +1852,7 @@ gnutls_x509_crq_get_subject_alt_othername_oid (gnutls_x509_crq_t crq,
* specifies which to send. Use (0) to get the first one.
* @buf: a pointer to a structure to hold the name (may be null)
* @sizeof_buf: initially holds the size of @buf
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
*
* This function will return the extension specified by the OID in
* the certificate. The extensions will be returned as binary data
diff --git a/lib/x509/dn.c b/lib/x509/dn.c
index 9506969f5a..ee37213426 100644
--- a/lib/x509/dn.c
+++ b/lib/x509/dn.c
@@ -796,7 +796,7 @@ _gnutls_x509_write_attribute (const char *given_oid,
/* Decodes an X.509 Attribute (if multi==1) or an AttributeTypeAndValue
* otherwise.
*
- * octet_string should be non (0) if we are to decode octet strings after
+ * octet_string should be non-zero if we are to decode octet strings after
* decoding.
*
* The output is allocated and stored in value.
@@ -1075,7 +1075,7 @@ gnutls_x509_rdn_get (const gnutls_datum_t * idn,
* @oid: an Object Identifier
* @indx: In case multiple same OIDs exist in the RDN indicates which
* to send. Use 0 for the first one.
- * @raw_flag: If non (0) then the raw DER data are returned.
+ * @raw_flag: If non-zero then the raw DER data are returned.
* @buf: a pointer to a structure to hold the peer's name
* @sizeof_buf: holds the size of @buf
*
diff --git a/lib/x509/pkcs12.c b/lib/x509/pkcs12.c
index a980ce2d75..edd0682021 100644
--- a/lib/x509/pkcs12.c
+++ b/lib/x509/pkcs12.c
@@ -1228,7 +1228,7 @@ write_attributes (gnutls_pkcs12_bag_t bag, int elem,
/* Encodes the bag into a SafeContents structure, and puts the output in
- * the given datum. Enc is set to non (0) if the data are encrypted;
+ * the given datum. Enc is set to non-zero if the data are encrypted;
*/
int
_pkcs12_encode_safe_contents (gnutls_pkcs12_bag_t bag, ASN1_TYPE * contents,
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index 8519500d55..525a486f36 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -278,7 +278,7 @@ gnutls_x509_crt_get_issuer_dn (gnutls_x509_crt_t cert, char *buf,
* @cert: should contain a #gnutls_x509_crt_t structure
* @oid: holds an Object Identified in null terminated string
* @indx: In case multiple same OIDs exist in the RDN, this specifies which to send. Use (0) to get the first one.
- * @raw_flag: If non (0) returns the raw DER data of the DN part.
+ * @raw_flag: If non-zero returns the raw DER data of the DN part.
* @buf: a pointer to a structure to hold the name (may be null)
* @buf_size: initially holds the size of @buf
*
@@ -390,7 +390,7 @@ gnutls_x509_crt_get_dn (gnutls_x509_crt_t cert, char *buf,
* @cert: should contain a #gnutls_x509_crt_t structure
* @oid: holds an Object Identified in null terminated string
* @indx: In case multiple same OIDs exist in the RDN, this specifies which to send. Use (0) to get the first one.
- * @raw_flag: If non (0) returns the raw DER data of the DN part.
+ * @raw_flag: If non-zero returns the raw DER data of the DN part.
* @buf: a pointer where the DN part will be copied (may be null).
* @buf_size: initially holds the size of @buf
*
@@ -735,7 +735,7 @@ gnutls_x509_crt_get_serial (gnutls_x509_crt_t cert, void *result,
* @cert: should contain a #gnutls_x509_crt_t structure
* @ret: The place where the identifier will be copied
* @ret_size: Holds the size of the result field.
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function will return the X.509v3 certificate's subject key
* identifier. This is obtained by the X.509 Subject Key identifier
@@ -876,7 +876,7 @@ _get_authority_key_id (gnutls_x509_crt_t cert, ASN1_TYPE *c2,
* @alt_type: holds the type of the alternative name (one of gnutls_x509_subject_alt_name_t).
* @serial: buffer to store the serial number (may be null)
* @serial_size: Holds the size of the serial field (may be null)
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function will return the X.509 authority key
* identifier when stored as a general name (authorityCertIssuer)
@@ -941,7 +941,7 @@ fail:
* @cert: should contain a #gnutls_x509_crt_t structure
* @id: The place where the identifier will be copied
* @id_size: Holds the size of the id field.
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function will return the X.509v3 certificate authority's key
* identifier. This is obtained by the X.509 Authority Key
@@ -1315,7 +1315,7 @@ get_alt_name (gnutls_x509_crt_t cert, const char *extension_id,
* @seq: specifies the sequence number of the alt name (0 for the first one, 1 for the second etc.)
* @san: is the place where the alternative name will be copied to
* @san_size: holds the size of san.
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function retrieves the Alternative Name (2.5.29.17), contained
* in the given certificate in the X509v3 Certificate Extensions.
@@ -1355,7 +1355,7 @@ gnutls_x509_crt_get_subject_alt_name (gnutls_x509_crt_t cert,
* @seq: specifies the sequence number of the alt name (0 for the first one, 1 for the second etc.)
* @ian: is the place where the alternative name will be copied to
* @ian_size: holds the size of ian.
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function retrieves the Issuer Alternative Name (2.5.29.18),
* contained in the given certificate in the X509v3 Certificate
@@ -1399,7 +1399,7 @@ gnutls_x509_crt_get_issuer_alt_name (gnutls_x509_crt_t cert,
* @san: is the place where the alternative name will be copied to
* @san_size: holds the size of ret.
* @san_type: holds the type of the alternative name (one of gnutls_x509_subject_alt_name_t).
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function will return the alternative names, contained in the
* given certificate. It is the same as
@@ -1434,7 +1434,7 @@ gnutls_x509_crt_get_subject_alt_name2 (gnutls_x509_crt_t cert,
* @ian: is the place where the alternative name will be copied to
* @ian_size: holds the size of ret.
* @ian_type: holds the type of the alternative name (one of gnutls_x509_subject_alt_name_t).
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function will return the alternative names, contained in the
* given certificate. It is the same as
@@ -1546,7 +1546,7 @@ gnutls_x509_crt_get_issuer_alt_othername_oid (gnutls_x509_crt_t cert,
/**
* gnutls_x509_crt_get_basic_constraints:
* @cert: should contain a #gnutls_x509_crt_t structure
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
* @ca: pointer to output integer indicating CA status, may be NULL,
* value is 1 if the certificate CA flag is set, 0 otherwise.
* @pathlen: pointer to output integer indicating path length (may be
@@ -1612,7 +1612,7 @@ gnutls_x509_crt_get_basic_constraints (gnutls_x509_crt_t cert,
/**
* gnutls_x509_crt_get_ca_status:
* @cert: should contain a #gnutls_x509_crt_t structure
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
*
* This function will return certificates CA status, by reading the
* basicConstraints X.509 extension (2.5.29.19). If the certificate is
@@ -1639,7 +1639,7 @@ gnutls_x509_crt_get_ca_status (gnutls_x509_crt_t cert, unsigned int *critical)
* gnutls_x509_crt_get_key_usage:
* @cert: should contain a #gnutls_x509_crt_t structure
* @key_usage: where the key usage bits will be stored
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
*
* This function will return certificate's key usage, by reading the
* keyUsage X.509 extension (2.5.29.15). The key usage value will ORed
@@ -1700,7 +1700,7 @@ gnutls_x509_crt_get_key_usage (gnutls_x509_crt_t cert,
/**
* gnutls_x509_crt_get_proxy:
* @cert: should contain a #gnutls_x509_crt_t structure
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
* @pathlen: pointer to output integer indicating path length (may be
* NULL), non-negative error codes indicate a present pCPathLenConstraint
* field and the actual value, -1 indicate that the field is absent.
@@ -1860,7 +1860,7 @@ cleanup:
* @cert: should contain a #gnutls_x509_crt_t structure
* @indx: This specifies which policy to return. Use (0) to get the first one.
* @policy: A pointer to a policy structure.
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
*
* This function will extract the certificate policy (extension 2.5.29.32)
* specified by the given index.
@@ -2025,7 +2025,7 @@ cleanup:
* @indx: In case multiple same OIDs exist in the extensions, this specifies which to send. Use (0) to get the first one.
* @buf: a pointer to a structure to hold the name (may be null)
* @buf_size: initially holds the size of @buf
- * @critical: will be non (0) if the extension is marked as critical
+ * @critical: will be non-zero if the extension is marked as critical
*
* This function will return the extension specified by the OID in the
* certificate. The extensions will be returned as binary data DER
@@ -2903,7 +2903,7 @@ gnutls_x509_crt_get_verify_algorithm (gnutls_x509_crt_t crt,
* gnutls_x509_crt_get_preferred_hash_algorithm:
* @crt: Holds the certificate
* @hash: The result of the call with the hash algorithm used for signature
- * @mand: If non (0) it means that the algorithm MUST use this hash. May be NULL.
+ * @mand: If non-zero it means that the algorithm MUST use this hash. May be NULL.
*
* This function will read the certifcate and return the appropriate digest
* algorithm to use for signing with this certificate. Some certificates (i.e.
@@ -3052,7 +3052,7 @@ gnutls_x509_crt_verify_hash (gnutls_x509_crt_t crt, unsigned int flags,
* @ret: is the place where the distribution point will be copied to
* @ret_size: holds the size of ret.
* @reason_flags: Revocation reasons. An ORed sequence of flags from %gnutls_x509_crl_reason_flags_t.
- * @critical: will be non (0) if the extension is marked as critical (may be null)
+ * @critical: will be non-zero if the extension is marked as critical (may be null)
*
* This function retrieves the CRL distribution points (2.5.29.31),
* contained in the given certificate in the X509v3 Certificate