diff options
author | tb <> | 2019-03-17 18:17:45 +0000 |
---|---|---|
committer | tb <> | 2019-03-17 18:17:45 +0000 |
commit | af9a3893c75bea9cdb40ebd337ad14721e571211 (patch) | |
tree | b05f68bd83b8de77bfa409e47aaaf56b0150950b /src/lib/libcrypto/evp/evp.h | |
parent | fb0b540c39c782c9152081c2021f54363e04307c (diff) | |
download | openbsd-af9a3893c75bea9cdb40ebd337ad14721e571211.tar.gz openbsd-af9a3893c75bea9cdb40ebd337ad14721e571211.tar.bz2 openbsd-af9a3893c75bea9cdb40ebd337ad14721e571211.zip |
Provide EVP_PKEY_get0_hmac(). From OpenSSL 1.1.1 which is still
freely licensed.
From jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 22876f9fe9..e8ab36693a 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.74 2019/03/17 18:07:41 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.75 2019/03/17 18:17:44 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 | * |
@@ -902,6 +902,7 @@ int EVP_PKEY_set_type(EVP_PKEY *pkey, int type); | |||
902 | int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len); | 902 | int EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len); |
903 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | 903 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); |
904 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); | 904 | void *EVP_PKEY_get0(const EVP_PKEY *pkey); |
905 | const unsigned char *EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len); | ||
905 | 906 | ||
906 | #ifndef OPENSSL_NO_RSA | 907 | #ifndef OPENSSL_NO_RSA |
907 | struct rsa_st; | 908 | struct rsa_st; |
@@ -1487,6 +1488,7 @@ void ERR_load_EVP_strings(void); | |||
1487 | #define EVP_R_ERROR_LOADING_SECTION 165 | 1488 | #define EVP_R_ERROR_LOADING_SECTION 165 |
1488 | #define EVP_R_ERROR_SETTING_FIPS_MODE 166 | 1489 | #define EVP_R_ERROR_SETTING_FIPS_MODE 166 |
1489 | #define EVP_R_EVP_PBE_CIPHERINIT_ERROR 119 | 1490 | #define EVP_R_EVP_PBE_CIPHERINIT_ERROR 119 |
1491 | #define EVP_R_EXPECTING_AN_HMAC_KEY 174 | ||
1490 | #define EVP_R_EXPECTING_AN_RSA_KEY 127 | 1492 | #define EVP_R_EXPECTING_AN_RSA_KEY 127 |
1491 | #define EVP_R_EXPECTING_A_DH_KEY 128 | 1493 | #define EVP_R_EXPECTING_A_DH_KEY 128 |
1492 | #define EVP_R_EXPECTING_A_DSA_KEY 129 | 1494 | #define EVP_R_EXPECTING_A_DSA_KEY 129 |