diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-07-31 19:14:09 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-08-04 17:02:48 +0200 |
commit | 924212a67020be9ab7a62af6bddd9d4db2635ffc (patch) | |
tree | 99ef0571beaa696b62a02675a8ac9131e4af2ba5 /include | |
parent | Constify two internal methods (diff) | |
download | openssl-924212a67020be9ab7a62af6bddd9d4db2635ffc.tar.xz openssl-924212a67020be9ab7a62af6bddd9d4db2635ffc.zip |
Constify input buffer
of X509_NAME_add_entry_by_OBJ, X509_NAME_add_entry_by_NID, X509_NAME_ENTRY_create_by_NID
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/x509.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/openssl/x509.h b/include/openssl/x509.h index b1722c748a..2abc138fbe 100644 --- a/include/openssl/x509.h +++ b/include/openssl/x509.h @@ -771,17 +771,18 @@ X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); int X509_NAME_add_entry(X509_NAME *name, X509_NAME_ENTRY *ne, int loc, int set); int X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int type, - unsigned char *bytes, int len, int loc, + const unsigned char *bytes, int len, int loc, int set); int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, - unsigned char *bytes, int len, int loc, + const unsigned char *bytes, int len, int loc, int set); X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, const char *field, int type, const unsigned char *bytes, int len); X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, - int type, unsigned char *bytes, + int type, + const unsigned char *bytes, int len); int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, const unsigned char *bytes, int len, int loc, |