• Stan Hu's avatar
    Make it possible to set SSL verify mode · 71119a71
    Stan Hu authored
    If no SSL certificates are provided, many Redis clients default to
    disabling SSL peer verification. Previously it was a bit cumbersome to
    configure this because the client would either have to reimplement
    `redisCreateSSLContext()` or reach into the internals to set the
    OpenSSL verify mode.
    
    We can improve the SSL API by introducing a
    `redisCreateSSLContextWithOptions()` call that takes into structured
    parameters for SSL initialization. This structure contains a verify
    mode that is used to set the OpenSSL verify mode.
    
    Relates to https://github.com/redis/hiredis/issues/646
    71119a71
ssl.c 16.3 KB