diff options
Diffstat (limited to 'src/lib/libcrypto/ecdh')
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_lib.c | 19 | ||||
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_locl.h | 6 |
2 files changed, 2 insertions, 23 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_lib.c b/src/lib/libcrypto/ecdh/ech_lib.c index e9fae9428b..43c4f8ce31 100644 --- a/src/lib/libcrypto/ecdh/ech_lib.c +++ b/src/lib/libcrypto/ecdh/ech_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ech_lib.c,v 1.7 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: ech_lib.c,v 1.8 2015/02/07 13:19:15 doug Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -106,11 +106,6 @@ int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) | |||
106 | if (ecdh == NULL) | 106 | if (ecdh == NULL) |
107 | return 0; | 107 | return 0; |
108 | 108 | ||
109 | #if 0 | ||
110 | mtmp = ecdh->meth; | ||
111 | if (mtmp->finish) | ||
112 | mtmp->finish(eckey); | ||
113 | #endif | ||
114 | #ifndef OPENSSL_NO_ENGINE | 109 | #ifndef OPENSSL_NO_ENGINE |
115 | if (ecdh->engine) | 110 | if (ecdh->engine) |
116 | { | 111 | { |
@@ -119,10 +114,6 @@ int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth) | |||
119 | } | 114 | } |
120 | #endif | 115 | #endif |
121 | ecdh->meth = meth; | 116 | ecdh->meth = meth; |
122 | #if 0 | ||
123 | if (meth->init) | ||
124 | meth->init(eckey); | ||
125 | #endif | ||
126 | return 1; | 117 | return 1; |
127 | } | 118 | } |
128 | 119 | ||
@@ -159,14 +150,6 @@ static ECDH_DATA *ECDH_DATA_new_method(ENGINE *engine) | |||
159 | 150 | ||
160 | ret->flags = ret->meth->flags; | 151 | ret->flags = ret->meth->flags; |
161 | CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data); | 152 | CRYPTO_new_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data); |
162 | #if 0 | ||
163 | if ((ret->meth->init != NULL) && !ret->meth->init(ret)) | ||
164 | { | ||
165 | CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ECDH, ret, &ret->ex_data); | ||
166 | free(ret); | ||
167 | ret=NULL; | ||
168 | } | ||
169 | #endif | ||
170 | return(ret); | 153 | return(ret); |
171 | } | 154 | } |
172 | 155 | ||
diff --git a/src/lib/libcrypto/ecdh/ech_locl.h b/src/lib/libcrypto/ecdh/ech_locl.h index fff54abf60..077c7dab95 100644 --- a/src/lib/libcrypto/ecdh/ech_locl.h +++ b/src/lib/libcrypto/ecdh/ech_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ech_locl.h,v 1.2 2014/06/12 15:49:29 deraadt Exp $ */ | 1 | /* $OpenBSD: ech_locl.h,v 1.3 2015/02/07 13:19:15 doug Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2000-2005 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -67,10 +67,6 @@ struct ecdh_method | |||
67 | const char *name; | 67 | const char *name; |
68 | int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, | 68 | int (*compute_key)(void *key, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, |
69 | void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); | 69 | void *(*KDF)(const void *in, size_t inlen, void *out, size_t *outlen)); |
70 | #if 0 | ||
71 | int (*init)(EC_KEY *eckey); | ||
72 | int (*finish)(EC_KEY *eckey); | ||
73 | #endif | ||
74 | int flags; | 70 | int flags; |
75 | char *app_data; | 71 | char *app_data; |
76 | }; | 72 | }; |