Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-10-30 23:53:00 +0300
committerAdam Langley <agl@google.com>2015-11-04 01:54:36 +0300
commite8f783ac0d7491723dc5f8656a4c9ba9ce830294 (patch)
tree6e604e63064869a3143ab2d747d3acb0f6cb6ad8 /crypto/engine
parent3fc138eccda8838d04b3c71c62d4968f335cae91 (diff)
Unwind DH_METHOD and DSA_METHOD.
This will allow a static linker (with -ffunction-sections since things aren't split into files) to drop unused parts of DH and DSA. Notably, the parameter generation bits pull in primality-checking code. Change-Id: I25087e4cb91bc9d0ab43bcb267c2e2c164e56b59 Reviewed-on: https://boringssl-review.googlesource.com/6388 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/engine.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/crypto/engine/engine.c b/crypto/engine/engine.c
index 6c3300d3..25ea98de 100644
--- a/crypto/engine/engine.c
+++ b/crypto/engine/engine.c
@@ -17,8 +17,6 @@
#include <string.h>
#include <assert.h>
-#include <openssl/dh.h>
-#include <openssl/dsa.h>
#include <openssl/ec_key.h>
#include <openssl/err.h>
#include <openssl/mem.h>
@@ -27,8 +25,6 @@
struct engine_st {
- DH_METHOD *dh_method;
- DSA_METHOD *dsa_method;
RSA_METHOD *rsa_method;
ECDSA_METHOD *ecdsa_method;
};
@@ -64,26 +60,6 @@ static int set_method(void **out_member, const void *method, size_t method_size,
return 1;
}
-int ENGINE_set_DH_method(ENGINE *engine, const DH_METHOD *method,
- size_t method_size) {
- return set_method((void **)&engine->dh_method, method, method_size,
- sizeof(DH_METHOD));
-}
-
-DH_METHOD *ENGINE_get_DH_method(const ENGINE *engine) {
- return engine->dh_method;
-}
-
-int ENGINE_set_DSA_method(ENGINE *engine, const DSA_METHOD *method,
- size_t method_size) {
- return set_method((void **)&engine->dsa_method, method, method_size,
- sizeof(DSA_METHOD));
-}
-
-DSA_METHOD *ENGINE_get_DSA_method(const ENGINE *engine) {
- return engine->dsa_method;
-}
-
int ENGINE_set_RSA_method(ENGINE *engine, const RSA_METHOD *method,
size_t method_size) {
return set_method((void **)&engine->rsa_method, method, method_size,