diff options
author | tb <> | 2018-05-18 18:05:57 +0000 |
---|---|---|
committer | tb <> | 2018-05-18 18:05:57 +0000 |
commit | c24a1915da522843c7d987ef000d91d7288b1dbf (patch) | |
tree | 42d4ef7de8b603cfe2061b921f264a0b1ebb7dad /src/lib | |
parent | c9322b9a693035cc0be62179f07b3d393193cda1 (diff) | |
download | openbsd-c24a1915da522843c7d987ef000d91d7288b1dbf.tar.gz openbsd-c24a1915da522843c7d987ef000d91d7288b1dbf.tar.bz2 openbsd-c24a1915da522843c7d987ef000d91d7288b1dbf.zip |
Add const to the argument of X509_NAME_entry_count().
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509name.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 788d97aaa4..35a0219c15 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.h,v 1.55 2018/05/18 18:02:07 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.56 2018/05/18 18:05:57 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1090,7 +1090,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag, unsigned long | |||
1090 | int X509_REQ_print(BIO *bp,X509_REQ *req); | 1090 | int X509_REQ_print(BIO *bp,X509_REQ *req); |
1091 | #endif | 1091 | #endif |
1092 | 1092 | ||
1093 | int X509_NAME_entry_count(X509_NAME *name); | 1093 | int X509_NAME_entry_count(const X509_NAME *name); |
1094 | int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, | 1094 | int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, |
1095 | char *buf,int len); | 1095 | char *buf,int len); |
1096 | int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, | 1096 | int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, |
diff --git a/src/lib/libcrypto/x509/x509name.c b/src/lib/libcrypto/x509/x509name.c index 0c93213352..db7b5ce8c0 100644 --- a/src/lib/libcrypto/x509/x509name.c +++ b/src/lib/libcrypto/x509/x509name.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509name.c,v 1.21 2018/05/18 18:02:07 tb Exp $ */ | 1 | /* $OpenBSD: x509name.c,v 1.22 2018/05/18 18:05:57 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -99,7 +99,7 @@ X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, char *buf, | |||
99 | } | 99 | } |
100 | 100 | ||
101 | int | 101 | int |
102 | X509_NAME_entry_count(X509_NAME *name) | 102 | X509_NAME_entry_count(const X509_NAME *name) |
103 | { | 103 | { |
104 | if (name == NULL) | 104 | if (name == NULL) |
105 | return (0); | 105 | return (0); |