From f4e1b645175eb4fc77ebd70c128d1c732e6bb36d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 19 Jun 2014 11:39:46 +0200 Subject: [PATCH] Fix comments about X.509 versions --- include/polarssl/x509_crl.h | 2 +- include/polarssl/x509_crt.h | 2 +- include/polarssl/x509_csr.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/polarssl/x509_crl.h b/include/polarssl/x509_crl.h index 3016b8754b..9f597a855a 100644 --- a/include/polarssl/x509_crl.h +++ b/include/polarssl/x509_crl.h @@ -75,7 +75,7 @@ typedef struct _x509_crl x509_buf raw; /**< The raw certificate data (DER). */ x509_buf tbs; /**< The raw certificate body (DER). The part that is To Be Signed. */ - int version; + int version; /**< CRL version (1=v1, 2=v2) */ x509_buf sig_oid1; x509_buf issuer_raw; /**< The raw issuer data (DER). */ diff --git a/include/polarssl/x509_crt.h b/include/polarssl/x509_crt.h index e90e3576bc..4bf8e568f1 100644 --- a/include/polarssl/x509_crt.h +++ b/include/polarssl/x509_crt.h @@ -59,7 +59,7 @@ typedef struct _x509_crt x509_buf raw; /**< The raw certificate data (DER). */ x509_buf tbs; /**< The raw certificate body (DER). The part that is To Be Signed. */ - int version; /**< The X.509 version. (0=v1, 1=v2, 2=v3) */ + int version; /**< The X.509 version. (1=v1, 2=v2, 3=v3) */ x509_buf serial; /**< Unique id for certificate issued by a specific CA. */ x509_buf sig_oid1; /**< Signature algorithm, e.g. sha1RSA */ diff --git a/include/polarssl/x509_csr.h b/include/polarssl/x509_csr.h index bbe6beca5f..6591e382eb 100644 --- a/include/polarssl/x509_csr.h +++ b/include/polarssl/x509_csr.h @@ -56,7 +56,7 @@ typedef struct _x509_csr x509_buf raw; /**< The raw CSR data (DER). */ x509_buf cri; /**< The raw CertificateRequestInfo body (DER). */ - int version; + int version; /**< CSR version (1=v1). */ x509_buf subject_raw; /**< The raw subject data (DER). */ x509_name subject; /**< The parsed subject data (named information object). */