Adding OpenSSL random number functions to openssl plugin

This commit is contained in:
Aleksandr Grinberg
2012-06-25 16:35:05 +02:00
committed by Tobias Brunner
parent 7beb31aae4
commit 4faece7b1e
4 changed files with 159 additions and 1 deletions
@@ -40,6 +40,7 @@
#include "openssl_ec_public_key.h"
#include "openssl_x509.h"
#include "openssl_crl.h"
#include "openssl_rng.h"
typedef struct private_openssl_plugin_t private_openssl_plugin_t;
@@ -363,6 +364,9 @@ METHOD(plugin_t, get_features, int,
PLUGIN_PROVIDE(PUBKEY_VERIFY, SIGN_ECDSA_521),
#endif
#endif /* OPENSSL_NO_ECDSA */
PLUGIN_REGISTER(RNG, openssl_rng_create),
PLUGIN_PROVIDE(RNG, RNG_STRONG),
PLUGIN_PROVIDE(RNG, RNG_WEAK),
};
*features = f;
return countof(f);