diff options
Diffstat (limited to 'src/lib/libcrypto/evp/encode.c')
| -rw-r--r-- | src/lib/libcrypto/evp/encode.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/encode.c b/src/lib/libcrypto/evp/encode.c index 07cfd7f2bc..ae107abb87 100644 --- a/src/lib/libcrypto/evp/encode.c +++ b/src/lib/libcrypto/evp/encode.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: encode.c,v 1.25 2018/08/24 19:45:11 tb Exp $ */ | 1 | /* $OpenBSD: encode.c,v 1.26 2019/01/19 01:24:18 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 | * |
| @@ -112,6 +112,18 @@ static const unsigned char data_ascii2bin[128] = { | |||
| 112 | 0x31, 0x32, 0x33, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | 112 | 0x31, 0x32, 0x33, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, |
| 113 | }; | 113 | }; |
| 114 | 114 | ||
| 115 | EVP_ENCODE_CTX * | ||
| 116 | EVP_ENCODE_CTX_new(void) | ||
| 117 | { | ||
| 118 | return calloc(1, sizeof(EVP_ENCODE_CTX)); | ||
| 119 | } | ||
| 120 | |||
| 121 | void | ||
| 122 | EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) | ||
| 123 | { | ||
| 124 | free(ctx); | ||
| 125 | } | ||
| 126 | |||
| 115 | void | 127 | void |
| 116 | EVP_EncodeInit(EVP_ENCODE_CTX *ctx) | 128 | EVP_EncodeInit(EVP_ENCODE_CTX *ctx) |
| 117 | { | 129 | { |
