summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp.h
diff options
context:
space:
mode:
authortb <>2018-02-20 18:05:28 +0000
committertb <>2018-02-20 18:05:28 +0000
commitbbf99f2760e8b676a94d4edac786dcf8b03fd1ce (patch)
treed0e432a5dae1c3d68b3f72c5b22ce5f8a3d9964d /src/lib/libcrypto/evp/evp.h
parentd6f857847da13bf66a33e009fdcf59034786be48 (diff)
downloadopenbsd-bbf99f2760e8b676a94d4edac786dcf8b03fd1ce.tar.gz
openbsd-bbf99f2760e8b676a94d4edac786dcf8b03fd1ce.tar.bz2
openbsd-bbf99f2760e8b676a94d4edac786dcf8b03fd1ce.zip
Provide EVP_PKEY_get0_EC_KEY() and 'if (ret)' vs 'if (ret != 0)' cosmetics.
ok jsing
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/evp/evp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h
index aec6fa4249..e12e771cc5 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.57 2018/02/17 16:54:08 jsing Exp $ */ 1/* $OpenBSD: evp.h,v 1.58 2018/02/20 18:05:28 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 *
@@ -893,8 +893,9 @@ int EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);
893#endif 893#endif
894#ifndef OPENSSL_NO_EC 894#ifndef OPENSSL_NO_EC
895struct ec_key_st; 895struct ec_key_st;
896int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key); 896struct ec_key_st *EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey);
897struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey); 897struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
898int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);
898#endif 899#endif
899#ifndef OPENSSL_NO_GOST 900#ifndef OPENSSL_NO_GOST
900struct gost_key_st; 901struct gost_key_st;