summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/misc/sk-dummy/sk-dummy.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/regress/misc/sk-dummy/sk-dummy.c b/regress/misc/sk-dummy/sk-dummy.c
index f63dc4d18..40a4ed2cc 100644
--- a/regress/misc/sk-dummy/sk-dummy.c
+++ b/regress/misc/sk-dummy/sk-dummy.c
@@ -115,6 +115,7 @@ sk_api_version(void)
115static int 115static int
116pack_key_ecdsa(struct sk_enroll_response *response) 116pack_key_ecdsa(struct sk_enroll_response *response)
117{ 117{
118#ifdef OPENSSL_HAS_ECC
118 EC_KEY *key = NULL; 119 EC_KEY *key = NULL;
119 const EC_GROUP *g; 120 const EC_GROUP *g;
120 const EC_POINT *q; 121 const EC_POINT *q;
@@ -194,6 +195,9 @@ pack_key_ecdsa(struct sk_enroll_response *response)
194 BIO_free(bio); 195 BIO_free(bio);
195 EC_KEY_free(key); 196 EC_KEY_free(key);
196 return ret; 197 return ret;
198#else
199 return -1;
200#endif
197} 201}
198 202
199static int 203static int
@@ -310,6 +314,7 @@ sig_ecdsa(const uint8_t *message, size_t message_len,
310 const uint8_t *key_handle, size_t key_handle_len, 314 const uint8_t *key_handle, size_t key_handle_len,
311 struct sk_sign_response *response) 315 struct sk_sign_response *response)
312{ 316{
317#ifdef OPENSSL_HAS_ECC
313 ECDSA_SIG *sig = NULL; 318 ECDSA_SIG *sig = NULL;
314 const BIGNUM *sig_r, *sig_s; 319 const BIGNUM *sig_r, *sig_s;
315 int ret = -1; 320 int ret = -1;
@@ -394,6 +399,9 @@ sig_ecdsa(const uint8_t *message, size_t message_len,
394 EC_KEY_free(ec); 399 EC_KEY_free(ec);
395 EVP_PKEY_free(pk); 400 EVP_PKEY_free(pk);
396 return ret; 401 return ret;
402#else
403 return -1;
404#endif
397} 405}
398 406
399static int 407static int