diff options
author | jsing <> | 2015-07-29 14:58:34 +0000 |
---|---|---|
committer | jsing <> | 2015-07-29 14:58:34 +0000 |
commit | 4b2596fb0f28cb59c8918b16cdae591454312175 (patch) | |
tree | ffda12d1155f37910342cc3f090b8425ad4cf03a /src/lib/libcrypto/ts | |
parent | ef1330e743f37f67eea11df4f4993267e06531dd (diff) | |
download | openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.tar.gz openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.tar.bz2 openbsd-4b2596fb0f28cb59c8918b16cdae591454312175.zip |
Expand obsolete M_ASN1.*(cmp|dup|print|set) macros - no change in generated
assembly.
ok bcook@
Diffstat (limited to 'src/lib/libcrypto/ts')
-rw-r--r-- | src/lib/libcrypto/ts/ts_lib.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ts/ts_rsp_utils.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ts/ts_lib.c b/src/lib/libcrypto/ts/ts_lib.c index f08bb8701d..ac5f65df94 100644 --- a/src/lib/libcrypto/ts/ts_lib.c +++ b/src/lib/libcrypto/ts/ts_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts_lib.c,v 1.8 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: ts_lib.c,v 1.9 2015/07/29 14:58:34 jsing 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 | */ |
@@ -117,7 +117,7 @@ TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions) | |||
117 | BIO_printf(bio, ": %s\n", critical ? "critical" : ""); | 117 | BIO_printf(bio, ": %s\n", critical ? "critical" : ""); |
118 | if (!X509V3_EXT_print(bio, ex, 0, 4)) { | 118 | if (!X509V3_EXT_print(bio, ex, 0, 4)) { |
119 | BIO_printf(bio, "%4s", ""); | 119 | BIO_printf(bio, "%4s", ""); |
120 | M_ASN1_OCTET_STRING_print(bio, ex->value); | 120 | ASN1_STRING_print(bio, ex->value); |
121 | } | 121 | } |
122 | BIO_write(bio, "\n", 1); | 122 | BIO_write(bio, "\n", 1); |
123 | } | 123 | } |
diff --git a/src/lib/libcrypto/ts/ts_rsp_utils.c b/src/lib/libcrypto/ts/ts_rsp_utils.c index 0d05814297..39eb2a2963 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.4 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: ts_rsp_utils.c,v 1.5 2015/07/29 14:58:34 jsing 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 | */ |
@@ -200,7 +200,7 @@ TS_TST_INFO_set_time(TS_TST_INFO *a, const ASN1_GENERALIZEDTIME *gtime) | |||
200 | 200 | ||
201 | if (a->time == gtime) | 201 | if (a->time == gtime) |
202 | return 1; | 202 | return 1; |
203 | new_time = M_ASN1_GENERALIZEDTIME_dup(gtime); | 203 | new_time = ASN1_STRING_dup(gtime); |
204 | if (new_time == NULL) { | 204 | if (new_time == NULL) { |
205 | TSerr(TS_F_TS_TST_INFO_SET_TIME, ERR_R_MALLOC_FAILURE); | 205 | TSerr(TS_F_TS_TST_INFO_SET_TIME, ERR_R_MALLOC_FAILURE); |
206 | return 0; | 206 | return 0; |