diff options
| author | tb <> | 2018-05-30 15:35:45 +0000 |
|---|---|---|
| committer | tb <> | 2018-05-30 15:35:45 +0000 |
| commit | 3a37ecacf160203b3975659c0fafbdeb5622c17f (patch) | |
| tree | a39f1ec92049ef4edf20bde709be0b740b1f4152 /src/lib/libcrypto/x509/x509.h | |
| parent | 87588ca5f85a92585105f886faa049e39b3feb2c (diff) | |
| download | openbsd-3a37ecacf160203b3975659c0fafbdeb5622c17f.tar.gz openbsd-3a37ecacf160203b3975659c0fafbdeb5622c17f.tar.bz2 openbsd-3a37ecacf160203b3975659c0fafbdeb5622c17f.zip | |
Add a const qualifier to the `name' argument of
X509_NAME_get_index_by_{OBJ,NID}().
tested in a bulk build by sthen
suggested by & ok jsing
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509/x509.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 877f80eecc..29e00d7a5b 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.67 2018/05/19 10:58:08 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.68 2018/05/30 15:35:45 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 | * |
| @@ -1100,8 +1100,9 @@ int X509_NAME_get_text_by_OBJ(X509_NAME *name, | |||
| 1100 | 1100 | ||
| 1101 | /* NOTE: you should be passsing -1, not 0 as lastpos. The functions that use | 1101 | /* NOTE: you should be passsing -1, not 0 as lastpos. The functions that use |
| 1102 | * lastpos, search after that position on. */ | 1102 | * lastpos, search after that position on. */ |
| 1103 | int X509_NAME_get_index_by_NID(X509_NAME *name,int nid,int lastpos); | 1103 | int X509_NAME_get_index_by_NID(const X509_NAME *name, int nid, |
| 1104 | int X509_NAME_get_index_by_OBJ(X509_NAME *name, | 1104 | int lastpos); |
| 1105 | int X509_NAME_get_index_by_OBJ(const X509_NAME *name, | ||
| 1105 | const ASN1_OBJECT *obj, int lastpos); | 1106 | const ASN1_OBJECT *obj, int lastpos); |
| 1106 | X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc); | 1107 | X509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc); |
| 1107 | X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); | 1108 | X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); |
