summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/Symbols.list2
-rw-r--r--src/lib/libcrypto/evp/encode.c14
-rw-r--r--src/lib/libcrypto/evp/evp.h4
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
1328EVP_DigestUpdate 1328EVP_DigestUpdate
1329EVP_DigestVerifyFinal 1329EVP_DigestVerifyFinal
1330EVP_DigestVerifyInit 1330EVP_DigestVerifyInit
1331EVP_ENCODE_CTX_free
1332EVP_ENCODE_CTX_new
1331EVP_EncodeBlock 1333EVP_EncodeBlock
1332EVP_EncodeFinal 1334EVP_EncodeFinal
1333EVP_EncodeInit 1335EVP_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
115EVP_ENCODE_CTX *
116EVP_ENCODE_CTX_new(void)
117{
118 return calloc(1, sizeof(EVP_ENCODE_CTX));
119}
120
121void
122EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx)
123{
124 free(ctx);
125}
126
115void 127void
116EVP_EncodeInit(EVP_ENCODE_CTX *ctx) 128EVP_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);
635int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl); 635int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);
636 636
637EVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void);
638void EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx);
637void EVP_EncodeInit(EVP_ENCODE_CTX *ctx); 639void EVP_EncodeInit(EVP_ENCODE_CTX *ctx);
638int EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, 640int 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);