diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-10-27 19:18:59 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-12-09 22:09:19 +0000 |
commit | 6e73d12e766b81c91d255b1d5db8b110f5559544 (patch) | |
tree | 731dc171e1fa0de3d12374ae596ec6fa3b7047e7 /crypto/ec/ecdsa_vrf.c | |
parent | 6a774a662569a5f8231b815dd3487f4b1b7bcf07 (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.c | 2 |
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; } |