diff options
| author | tb <> | 2018-05-13 15:35:46 +0000 |
|---|---|---|
| committer | tb <> | 2018-05-13 15:35:46 +0000 |
| commit | 6db451f380877c4c494a94c071855240ac202477 (patch) | |
| tree | 64bf8c044b97ffc13771ae2ab62d2314a8fb1e64 | |
| parent | fde187bda5ffeae71c1695aa3de4a72d94f51052 (diff) | |
| download | openbsd-6db451f380877c4c494a94c071855240ac202477.tar.gz openbsd-6db451f380877c4c494a94c071855240ac202477.tar.bz2 openbsd-6db451f380877c4c494a94c071855240ac202477.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 '')
| -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 | } |
