diff options
author | Martin Willi <martin@revosec.ch> | 2010-08-10 15:56:10 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-08-10 18:46:30 +0200 |
commit | a944d2092bb8663be21f863bbe27fa475966c9d9 (patch) | |
tree | 7a3d6f2c612f7e9e229c0e8be2fa21fb05d3db2e /src/scepclient/scepclient.c | |
parent | 33ddaaabec136e358bf38a6aeb7855f466603007 (diff) | |
download | strongswan-a944d2092bb8663be21f863bbe27fa475966c9d9.tar.bz2 strongswan-a944d2092bb8663be21f863bbe27fa475966c9d9.tar.xz |
Use bits instead of bytes for a private/public key
Diffstat (limited to 'src/scepclient/scepclient.c')
-rw-r--r-- | src/scepclient/scepclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c index b7d029f2d..448854acd 100644 --- a/src/scepclient/scepclient.c +++ b/src/scepclient/scepclient.c @@ -807,7 +807,7 @@ int main(int argc, char **argv) public_key = private_key->get_public_key(private_key); /* check for minimum key length */ - if (private_key->get_keysize(private_key) < RSA_MIN_OCTETS) + if (private_key->get_keysize(private_key) < RSA_MIN_OCTETS / BITS_PER_BYTE) { exit_scepclient("length of RSA key has to be at least %d bits" ,RSA_MIN_OCTETS * BITS_PER_BYTE); |