diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshd.c,v 1.452 2015/07/03 03:47:00 djm Exp $ */ | 1 | /* $OpenBSD: sshd.c,v 1.453 2015/07/03 03:49:45 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1874,8 +1874,8 @@ main(int ac, char **av) | |||
1874 | #ifdef WITH_SSH1 | 1874 | #ifdef WITH_SSH1 |
1875 | /* Check certain values for sanity. */ | 1875 | /* Check certain values for sanity. */ |
1876 | if (options.protocol & SSH_PROTO_1) { | 1876 | if (options.protocol & SSH_PROTO_1) { |
1877 | if (options.server_key_bits < 512 || | 1877 | if (options.server_key_bits < SSH_RSA_MINIMUM_MODULUS_SIZE || |
1878 | options.server_key_bits > 32768) { | 1878 | options.server_key_bits > OPENSSL_RSA_MAX_MODULUS_BITS) { |
1879 | fprintf(stderr, "Bad server key size.\n"); | 1879 | fprintf(stderr, "Bad server key size.\n"); |
1880 | exit(1); | 1880 | exit(1); |
1881 | } | 1881 | } |