diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-19 10:58:09 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-19 10:58:09 +0000 |
commit | d8f5ae8ba55196505806989c8da9eace193806a3 (patch) | |
tree | a82209ce1d1fd0864fa021e1f0b19c2d8a6b0b56 | |
parent | 96a5b8644efbf6fe4a1bf92326dec61cd8c3b8e2 (diff) |
Add const to the obj argument of X509_NAME_add_entry_by_OBJ()
tested in a bulk build by sthen
ok jsing
-rw-r--r-- | lib/libcrypto/x509/x509.h | 6 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509name.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h index 26568eacdd0..877f80eeccf 100644 --- a/lib/libcrypto/x509/x509.h +++ b/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.66 2018/05/19 10:54:40 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.67 2018/05/19 10:58:08 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1107,8 +1107,8 @@ X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc); X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, int loc, int set); -int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, - const unsigned char *bytes, int len, int loc, int set); +int X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, + int type, const unsigned char *bytes, int len, int loc, int set); int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, const unsigned char *bytes, int len, int loc, int set); X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, diff --git a/lib/libcrypto/x509/x509name.c b/lib/libcrypto/x509/x509name.c index 2b19aeb9275..fa134a2a6af 100644 --- a/lib/libcrypto/x509/x509name.c +++ b/lib/libcrypto/x509/x509name.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509name.c,v 1.24 2018/05/18 18:16:39 tb Exp $ */ +/* $OpenBSD: x509name.c,v 1.25 2018/05/19 10:58:08 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -188,7 +188,7 @@ X509_NAME_delete_entry(X509_NAME *name, int loc) } int -X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, +X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len, int loc, int set) { X509_NAME_ENTRY *ne; |