diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 75f8e2e09..7f775ff16 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1964,7 +1964,6 @@ do_show_cert(struct passwd *pw) | |||
1964 | exit(0); | 1964 | exit(0); |
1965 | } | 1965 | } |
1966 | 1966 | ||
1967 | #ifdef WITH_OPENSSL | ||
1968 | static void | 1967 | static void |
1969 | load_krl(const char *path, struct ssh_krl **krlp) | 1968 | load_krl(const char *path, struct ssh_krl **krlp) |
1970 | { | 1969 | { |
@@ -2106,12 +2105,10 @@ update_krl_from_file(struct passwd *pw, const char *file, const Key *ca, | |||
2106 | fclose(krl_spec); | 2105 | fclose(krl_spec); |
2107 | free(path); | 2106 | free(path); |
2108 | } | 2107 | } |
2109 | #endif /* WITH_OPENSSL */ | ||
2110 | 2108 | ||
2111 | static void | 2109 | static void |
2112 | do_gen_krl(struct passwd *pw, int updating, int argc, char **argv) | 2110 | do_gen_krl(struct passwd *pw, int updating, int argc, char **argv) |
2113 | { | 2111 | { |
2114 | #ifdef WITH_OPENSSL | ||
2115 | struct ssh_krl *krl; | 2112 | struct ssh_krl *krl; |
2116 | struct stat sb; | 2113 | struct stat sb; |
2117 | Key *ca = NULL; | 2114 | Key *ca = NULL; |
@@ -2161,15 +2158,11 @@ do_gen_krl(struct passwd *pw, int updating, int argc, char **argv) | |||
2161 | ssh_krl_free(krl); | 2158 | ssh_krl_free(krl); |
2162 | if (ca != NULL) | 2159 | if (ca != NULL) |
2163 | key_free(ca); | 2160 | key_free(ca); |
2164 | #else /* WITH_OPENSSL */ | ||
2165 | fatal("KRLs not supported without OpenSSL"); | ||
2166 | #endif /* WITH_OPENSSL */ | ||
2167 | } | 2161 | } |
2168 | 2162 | ||
2169 | static void | 2163 | static void |
2170 | do_check_krl(struct passwd *pw, int argc, char **argv) | 2164 | do_check_krl(struct passwd *pw, int argc, char **argv) |
2171 | { | 2165 | { |
2172 | #ifdef WITH_OPENSSL | ||
2173 | int i, r, ret = 0; | 2166 | int i, r, ret = 0; |
2174 | char *comment; | 2167 | char *comment; |
2175 | struct ssh_krl *krl; | 2168 | struct ssh_krl *krl; |
@@ -2192,9 +2185,6 @@ do_check_krl(struct passwd *pw, int argc, char **argv) | |||
2192 | } | 2185 | } |
2193 | ssh_krl_free(krl); | 2186 | ssh_krl_free(krl); |
2194 | exit(ret); | 2187 | exit(ret); |
2195 | #else /* WITH_OPENSSL */ | ||
2196 | fatal("KRLs not supported without OpenSSL"); | ||
2197 | #endif /* WITH_OPENSSL */ | ||
2198 | } | 2188 | } |
2199 | 2189 | ||
2200 | static void | 2190 | static void |