diff options
author | tb <> | 2018-05-13 15:35:46 +0000 |
---|---|---|
committer | tb <> | 2018-05-13 15:35:46 +0000 |
commit | a63de23e1f0e03f20ea5ec136638a8ce4d3c09d2 (patch) | |
tree | 64bf8c044b97ffc13771ae2ab62d2314a8fb1e64 /src/lib | |
parent | b0e9b80efde53e09ba0e6da43a3086b062ae877e (diff) | |
download | openbsd-a63de23e1f0e03f20ea5ec136638a8ce4d3c09d2.tar.gz openbsd-a63de23e1f0e03f20ea5ec136638a8ce4d3c09d2.tar.bz2 openbsd-a63de23e1f0e03f20ea5ec136638a8ce4d3c09d2.zip |
Add const to the ASN1_OBJECT argument of TS_TST_INFO_get_ext_by_OBJ(3).
Should have been part of the previous commit. Omission noted by schwarze.
tested in bulk build by sthen
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/ts/ts.h | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/ts/ts_rsp_utils.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ts/ts.h b/src/lib/libcrypto/ts/ts.h index 3a010d517b..fa8eb949a4 100644 --- a/src/lib/libcrypto/ts/ts.h +++ b/src/lib/libcrypto/ts/ts.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts.h,v 1.9 2018/05/13 15:04:05 tb Exp $ */ | 1 | /* $OpenBSD: ts.h,v 1.10 2018/05/13 15:35:46 tb Exp $ */ |
2 | /* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL |
3 | * project 2002, 2003, 2004. | 3 | * project 2002, 2003, 2004. |
4 | */ | 4 | */ |
@@ -439,7 +439,8 @@ STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a); | |||
439 | void TS_TST_INFO_ext_free(TS_TST_INFO *a); | 439 | void TS_TST_INFO_ext_free(TS_TST_INFO *a); |
440 | int TS_TST_INFO_get_ext_count(TS_TST_INFO *a); | 440 | int TS_TST_INFO_get_ext_count(TS_TST_INFO *a); |
441 | int TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos); | 441 | int TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos); |
442 | int TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, ASN1_OBJECT *obj, int lastpos); | 442 | int TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, const ASN1_OBJECT *obj, |
443 | int lastpos); | ||
443 | int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos); | 444 | int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos); |
444 | X509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc); | 445 | X509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc); |
445 | X509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc); | 446 | X509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc); |
diff --git a/src/lib/libcrypto/ts/ts_rsp_utils.c b/src/lib/libcrypto/ts/ts_rsp_utils.c index 5638331d17..233df867ac 100644 --- a/src/lib/libcrypto/ts/ts_rsp_utils.c +++ b/src/lib/libcrypto/ts/ts_rsp_utils.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts_rsp_utils.c,v 1.6 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: ts_rsp_utils.c,v 1.7 2018/05/13 15:35:46 tb Exp $ */ |
2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
3 | * project 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -398,7 +398,7 @@ TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos) | |||
398 | } | 398 | } |
399 | 399 | ||
400 | int | 400 | int |
401 | TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, ASN1_OBJECT *obj, int lastpos) | 401 | TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, const ASN1_OBJECT *obj, int lastpos) |
402 | { | 402 | { |
403 | return X509v3_get_ext_by_OBJ(a->extensions, obj, lastpos); | 403 | return X509v3_get_ext_by_OBJ(a->extensions, obj, lastpos); |
404 | } | 404 | } |