summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecdsa_vrf.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-10-27 19:18:59 +0000
committerDr. Stephen Henson <steve@openssl.org>2015-12-09 22:09:19 +0000
commit6e73d12e766b81c91d255b1d5db8b110f5559544 (patch)
tree731dc171e1fa0de3d12374ae596ec6fa3b7047e7 /crypto/ec/ecdsa_vrf.c
parent6a774a662569a5f8231b815dd3487f4b1b7bcf07 (diff)
return errors for unsupported operations
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/ec/ecdsa_vrf.c')
-rw-r--r--crypto/ec/ecdsa_vrf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ec/ecdsa_vrf.c b/crypto/ec/ecdsa_vrf.c
index ef8c66f448..a62b999bb9 100644
--- a/crypto/ec/ecdsa_vrf.c
+++ b/crypto/ec/ecdsa_vrf.c
@@ -62,6 +62,7 @@
#ifndef OPENSSL_NO_ENGINE
# include <openssl/engine.h>
#endif
+#include <openssl/err.h>
/*-
* returns
@@ -74,6 +75,7 @@ int ECDSA_do_verify(const unsigned char *dgst, int dgst_len,
{
if (eckey->meth->verify_sig)
return eckey->meth->verify_sig(dgst, dgst_len, sig, eckey);
+ ECerr(EC_F_ECDSA_DO_VERIFY, EC_R_OPERATION_NOT_SUPPORTED);
return 0;
}