Adding OpenSSL HMAC pseudo random functions to openssl plugin
This commit is contained in:
committed by
Tobias Brunner
parent
4faece7b1e
commit
0504b0a09f
@@ -41,6 +41,7 @@
|
||||
#include "openssl_x509.h"
|
||||
#include "openssl_crl.h"
|
||||
#include "openssl_rng.h"
|
||||
#include "openssl_hmac_prf.h"
|
||||
|
||||
typedef struct private_openssl_plugin_t private_openssl_plugin_t;
|
||||
|
||||
@@ -261,6 +262,22 @@ METHOD(plugin_t, get_features, int,
|
||||
PLUGIN_REGISTER(PRF, openssl_sha1_prf_create),
|
||||
PLUGIN_PROVIDE(PRF, PRF_KEYED_SHA1),
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_HMAC
|
||||
PLUGIN_REGISTER(PRF, openssl_hmac_prf_create),
|
||||
#ifndef OPENSSL_NO_MD5
|
||||
PLUGIN_PROVIDE(PRF, PRF_HMAC_MD5),
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SHA1
|
||||
PLUGIN_PROVIDE(PRF, PRF_HMAC_SHA1),
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SHA256
|
||||
PLUGIN_PROVIDE(PRF, PRF_HMAC_SHA2_256),
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SHA512
|
||||
PLUGIN_PROVIDE(PRF, PRF_HMAC_SHA2_384),
|
||||
PLUGIN_PROVIDE(PRF, PRF_HMAC_SHA2_512),
|
||||
#endif
|
||||
#endif /* OPENSSL_NO_HMAC */
|
||||
#ifndef OPENSSL_NO_DH
|
||||
/* MODP DH groups */
|
||||
PLUGIN_REGISTER(DH, openssl_diffie_hellman_create),
|
||||
|
||||
Reference in New Issue
Block a user