diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/evp/encode.c | 14 | ||||
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index 98518fcf72..4836a3ff9f 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
@@ -1328,6 +1328,8 @@ EVP_DigestSignInit | |||
1328 | EVP_DigestUpdate | 1328 | EVP_DigestUpdate |
1329 | EVP_DigestVerifyFinal | 1329 | EVP_DigestVerifyFinal |
1330 | EVP_DigestVerifyInit | 1330 | EVP_DigestVerifyInit |
1331 | EVP_ENCODE_CTX_free | ||
1332 | EVP_ENCODE_CTX_new | ||
1331 | EVP_EncodeBlock | 1333 | EVP_EncodeBlock |
1332 | EVP_EncodeFinal | 1334 | EVP_EncodeFinal |
1333 | EVP_EncodeInit | 1335 | EVP_EncodeInit |
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 | { |
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 04e0455623..35f2b3281b 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp.h,v 1.70 2018/11/11 06:53:31 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.71 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 | * |
@@ -634,6 +634,8 @@ int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | |||
634 | int npubk); | 634 | int npubk); |
635 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); | 635 | int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); |
636 | 636 | ||
637 | EVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void); | ||
638 | void EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx); | ||
637 | void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); | 639 | void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); |
638 | int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | 640 | int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, |
639 | const unsigned char *in, int inl); | 641 | const unsigned char *in, int inl); |