diff options
| author | jsing <> | 2014-08-28 14:23:52 +0000 |
|---|---|---|
| committer | jsing <> | 2014-08-28 14:23:52 +0000 |
| commit | 3a2884e89a931573761460cdda84faf509e7ecd3 (patch) | |
| tree | 5ac74b73de2223699514f57dae53d0bee08b0eb0 /src/usr.bin/openssl/ts.c | |
| parent | 31c9e04aeb255ae1ae51c6f06be5e4714c9e9054 (diff) | |
| download | openbsd-3a2884e89a931573761460cdda84faf509e7ecd3.tar.gz openbsd-3a2884e89a931573761460cdda84faf509e7ecd3.tar.bz2 openbsd-3a2884e89a931573761460cdda84faf509e7ecd3.zip | |
openssl_setup() calls SSL_load_error_strings(), which happens to call
ERR_load_crypto_strings() - as such, we do not need to call the same
function from most of the applications.
Diffstat (limited to 'src/usr.bin/openssl/ts.c')
| -rw-r--r-- | src/usr.bin/openssl/ts.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c index fab79b9cee..c765465c45 100644 --- a/src/usr.bin/openssl/ts.c +++ b/src/usr.bin/openssl/ts.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ts.c,v 1.1 2014/08/26 17:47:25 jsing Exp $ */ | 1 | /* $OpenBSD: ts.c,v 1.2 2014/08/28 14:23:52 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 | */ |
| @@ -154,8 +154,6 @@ ts_main(int argc, char **argv) | |||
| 154 | /* Output is ContentInfo instead of TimeStampResp. */ | 154 | /* Output is ContentInfo instead of TimeStampResp. */ |
| 155 | int token_out = 0; | 155 | int token_out = 0; |
| 156 | 156 | ||
| 157 | ERR_load_crypto_strings(); | ||
| 158 | |||
| 159 | for (argc--, argv++; argc > 0; argc--, argv++) { | 157 | for (argc--, argv++; argc > 0; argc--, argv++) { |
| 160 | if (strcmp(*argv, "-config") == 0) { | 158 | if (strcmp(*argv, "-config") == 0) { |
| 161 | if (argc-- < 1) | 159 | if (argc-- < 1) |
