aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 02:45:00 +0000
committerlloyd <[email protected]>2010-10-13 02:45:00 +0000
commit63121e1e169616f724bf79b8aac1a2b4423c8904 (patch)
tree2375d5b5daaad8990b2cee951d137f2e7638e79b /src/cert
parent879d062c2b93e32362e338d1c6f9b1eda0f88493 (diff)
Use output_length() instead of OUTPUT_LENGTH pseudo-property
Diffstat (limited to 'src/cert')
-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")