aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/x509ca/x509_ca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cert/x509ca/x509_ca.cpp')
-rw-r--r--src/cert/x509ca/x509_ca.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cert/x509ca/x509_ca.cpp b/src/cert/x509ca/x509_ca.cpp
index 4379488e9..c9523c6c8 100644
--- a/src/cert/x509ca/x509_ca.cpp
+++ b/src/cert/x509ca/x509_ca.cpp
@@ -227,7 +227,7 @@ PK_Signer* choose_sig_format(const Private_Key& key,
if(!proto_hash)
throw Algorithm_Not_Found(hash_fn);
- if(key.max_input_bits() < proto_hash->OUTPUT_LENGTH*8)
+ if(key.max_input_bits() < proto_hash->output_length()*8)
throw Invalid_Argument("Key is too small for chosen hash function");
if(algo_name == "RSA")