• zhenwei pi's avatar
    Introduce TLS specified APIs · c4c02f80
    zhenwei pi authored
    
    
    Introduce .get_peer_cert, .get_ctx and .get_client_ctx for TLS, also
    hide redis_tls_ctx & redis_tls_client_ctx.
    
    Then outside could access the variables by connection API only:
    - redis_tls_ctx -> connTypeGetCtx(CONN_TYPE_TLS)
    - redis_tls_client_ctx -> connTypeGetClientCtx(CONN_TYPE_TLS)
    
    Also remove connTLSGetPeerCert(), use connGetPeerCert() instead.
    Signed-off-by: default avatarzhenwei pi <pizhenwei@bytedance.com>
    c4c02f80
sentinel.c 208 KB