summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_lib.c
diff options
context:
space:
mode:
authortb <>2018-08-24 19:36:52 +0000
committertb <>2018-08-24 19:36:52 +0000
commitc325efb29fe8d4424b297e038e185a24061bf706 (patch)
treea8808e097ec2be9caf925e8cab25ab3ed8e84bdf /src/lib/libcrypto/evp/evp_lib.c
parent9d4617570f8c08c43eda1a246ac8fa01be58c3f3 (diff)
downloadopenbsd-c325efb29fe8d4424b297e038e185a24061bf706.tar.gz
openbsd-c325efb29fe8d4424b297e038e185a24061bf706.tar.bz2
openbsd-c325efb29fe8d4424b297e038e185a24061bf706.zip
Provide EVP_CIPHER_CTX_encrypting().
tested in a bulk by sthen ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp_lib.c')
-rw-r--r--src/lib/libcrypto/evp/evp_lib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_lib.c b/src/lib/libcrypto/evp/evp_lib.c
index ad97a3b7b9..3571755620 100644
--- a/src/lib/libcrypto/evp/evp_lib.c
+++ b/src/lib/libcrypto/evp/evp_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_lib.c,v 1.15 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: evp_lib.c,v 1.16 2018/08/24 19:36:52 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 *
@@ -207,6 +207,12 @@ EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx)
207 return ctx->cipher; 207 return ctx->cipher;
208} 208}
209 209
210int
211EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx)
212{
213 return ctx->encrypt;
214}
215
210unsigned long 216unsigned long
211EVP_CIPHER_flags(const EVP_CIPHER *cipher) 217EVP_CIPHER_flags(const EVP_CIPHER *cipher)
212{ 218{