diff options
author | tb <> | 2023-04-25 19:26:45 +0000 |
---|---|---|
committer | tb <> | 2023-04-25 19:26:45 +0000 |
commit | d450bc3bc87081cdb0f831c070906e9ecf5fd137 (patch) | |
tree | a3af15f664ba745ec6f1dd24bd78b427fee17458 /src/lib/libcrypto/ec/ec.h | |
parent | 67debf20de785e46126aa900cfe4c5d7fd9ca7d8 (diff) | |
download | openbsd-d450bc3bc87081cdb0f831c070906e9ecf5fd137.tar.gz openbsd-d450bc3bc87081cdb0f831c070906e9ecf5fd137.tar.bz2 openbsd-d450bc3bc87081cdb0f831c070906e9ecf5fd137.zip |
Move EC_KEY_{insert,set}_key_method_data() to internal-only
Diffstat (limited to 'src/lib/libcrypto/ec/ec.h')
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 8ae40ed869..d67a1bfed7 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec.h,v 1.35 2023/04/18 15:14:46 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.36 2023/04/25 19:26:45 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -821,22 +821,6 @@ void EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags); | |||
821 | point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key); | 821 | point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key); |
822 | void EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform); | 822 | void EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform); |
823 | 823 | ||
824 | #if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
825 | /* functions to set/get method specific data */ | ||
826 | void *EC_KEY_get_key_method_data(EC_KEY *key, | ||
827 | void *(*dup_func)(void *), void (*free_func)(void *), void (*clear_free_func)(void *)); | ||
828 | /** Sets the key method data of an EC_KEY object, if none has yet been set. | ||
829 | * \param key EC_KEY object | ||
830 | * \param data opaque data to install. | ||
831 | * \param dup_func a function that duplicates |data|. | ||
832 | * \param free_func a function that frees |data|. | ||
833 | * \param clear_free_func a function that wipes and frees |data|. | ||
834 | * \return the previously set data pointer, or NULL if |data| was inserted. | ||
835 | */ | ||
836 | void *EC_KEY_insert_key_method_data(EC_KEY *key, void *data, | ||
837 | void *(*dup_func)(void *), void (*free_func)(void *), void (*clear_free_func)(void *)); | ||
838 | #endif | ||
839 | |||
840 | /* wrapper functions for the underlying EC_GROUP object */ | 824 | /* wrapper functions for the underlying EC_GROUP object */ |
841 | void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); | 825 | void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); |
842 | 826 | ||