diff options
author | 2019-01-19 01:24:18 +0000 | |
---|---|---|
committer | 2019-01-19 01:24:18 +0000 | |
commit | 73295cba5b0c5bbc886a38a354632df40446c5b3 (patch) | |
tree | 4210501f122113b54432128517158b05f27968a2 /lib/libcrypto/evp/encode.c | |
parent | $OpenBSD$ (diff) | |
download | wireguard-openbsd-73295cba5b0c5bbc886a38a354632df40446c5b3.tar.xz wireguard-openbsd-73295cba5b0c5bbc886a38a354632df40446c5b3.zip |
provide EVP_ENCODE_CTX_{new,free}().
ok jsing
Diffstat (limited to 'lib/libcrypto/evp/encode.c')
-rw-r--r-- | lib/libcrypto/evp/encode.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libcrypto/evp/encode.c b/lib/libcrypto/evp/encode.c index 07cfd7f2bc4..ae107abb875 100644 --- a/lib/libcrypto/evp/encode.c +++ b/lib/libcrypto/evp/encode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: encode.c,v 1.25 2018/08/24 19:45:11 tb Exp $ */ +/* $OpenBSD: encode.c,v 1.26 2019/01/19 01:24:18 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -112,6 +112,18 @@ static const unsigned char data_ascii2bin[128] = { 0x31, 0x32, 0x33, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }; +EVP_ENCODE_CTX * +EVP_ENCODE_CTX_new(void) +{ + return calloc(1, sizeof(EVP_ENCODE_CTX)); +} + +void +EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx) +{ + free(ctx); +} + void EVP_EncodeInit(EVP_ENCODE_CTX *ctx) { |