• Heikki Linnakangas's avatar
    Add API functions to libpq to interrogate SSL related stuff. · 91fa7b47
    Heikki Linnakangas authored
    This makes it possible to query for things like the SSL version and cipher
    used, without depending on OpenSSL functions or macros. That is a good
    thing if we ever get another SSL implementation.
    
    PQgetssl() still works, but it should be considered as deprecated as it
    only works with OpenSSL. In particular, PQgetSslInUse() should be used to
    check if a connection uses SSL, because as soon as we have another
    implementation, PQgetssl() will return NULL even if SSL is in use.
    91fa7b47
command.c 72.5 KB