diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-06-05 14:43:34 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2016-06-05 17:47:57 +0100 |
commit | d3f800d23b4fdab512d437611c85eb3288f4f6b5 (patch) | |
tree | c0f7432d087de0e59a67381acc2fdd991c93b060 | |
parent | 980f27fc193666278b2f7eb4f63ca77e08615a90 (diff) |
Accept expired server certificates
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | src/s_serv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s_serv.c b/src/s_serv.c index 66919bb..88a9990 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -898,7 +898,8 @@ ssl_server_handshake(fde_t *fd, struct Client *client_p) if (res == X509_V_OK || res == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN || res == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE || - res == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) + res == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT || + res == X509_V_ERR_CERT_HAS_EXPIRED) { unsigned int i = 0, n = 0; |