From 63121e1e169616f724bf79b8aac1a2b4423c8904 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 13 Oct 2010 02:45:00 +0000 Subject: Use output_length() instead of OUTPUT_LENGTH pseudo-property --- src/cert/x509ca/x509_ca.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cert') 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") -- cgit v1.2.3