[openssl] OpenSSL_1_1_1-stable update

matthias.st.pierre at ncp-e.com matthias.st.pierre at ncp-e.com
Fri May 24 07:59:12 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  dc9f2a69f34937f8e48a51c863c18633c813820d (commit)
      from  6b261345d5ad7419b9e01d00a011d91db8557b8c (commit)


- Log -----------------------------------------------------------------
commit dc9f2a69f34937f8e48a51c863c18633c813820d
Author: agnosticdev <agnosticdev at gmail.com>
Date:   Thu May 23 20:33:19 2019 -0500

    issue-8973: Added const to parameters for values that were not altered
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/8995)
    
    (cherry picked from commit 5435a830765a63692b8e1e406142d1602133a5a0)

-----------------------------------------------------------------------

Summary of changes:
 crypto/x509v3/v3_genn.c  | 4 ++--
 include/openssl/x509v3.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/crypto/x509v3/v3_genn.c b/crypto/x509v3/v3_genn.c
index 85fc3fc..9937fde 100644
--- a/crypto/x509v3/v3_genn.c
+++ b/crypto/x509v3/v3_genn.c
@@ -143,7 +143,7 @@ void GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value)
     a->type = type;
 }
 
-void *GENERAL_NAME_get0_value(GENERAL_NAME *a, int *ptype)
+void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype)
 {
     if (ptype)
         *ptype = a->type;
@@ -188,7 +188,7 @@ int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
     return 1;
 }
 
-int GENERAL_NAME_get0_otherName(GENERAL_NAME *gen,
+int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,
                                 ASN1_OBJECT **poid, ASN1_TYPE **pvalue)
 {
     if (gen->type != GEN_OTHERNAME)
diff --git a/include/openssl/x509v3.h b/include/openssl/x509v3.h
index fe1791c..a2d8975 100644
--- a/include/openssl/x509v3.h
+++ b/include/openssl/x509v3.h
@@ -497,10 +497,10 @@ DECLARE_ASN1_FUNCTIONS(OTHERNAME)
 DECLARE_ASN1_FUNCTIONS(EDIPARTYNAME)
 int OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b);
 void GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value);
-void *GENERAL_NAME_get0_value(GENERAL_NAME *a, int *ptype);
+void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);
 int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
                                 ASN1_OBJECT *oid, ASN1_TYPE *value);
-int GENERAL_NAME_get0_otherName(GENERAL_NAME *gen,
+int GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,
                                 ASN1_OBJECT **poid, ASN1_TYPE **pvalue);
 
 char *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,


More information about the openssl-commits mailing list