]> granicus.if.org Git - pgbouncer/commitdiff
Sync tls changes
authorMarko Kreen <markokr@gmail.com>
Sun, 23 Aug 2015 13:11:22 +0000 (16:11 +0300)
committerMarko Kreen <markokr@gmail.com>
Sun, 23 Aug 2015 13:11:22 +0000 (16:11 +0300)
lib
src/client.c

diff --git a/lib b/lib
index 1fc803ba21ee59d2265bcfe75d0a9461dd440cef..f82d4beae0b9cad8e566d7a13b99fbefd70d0296 160000 (submodule)
--- a/lib
+++ b/lib
@@ -1 +1 @@
-Subproject commit 1fc803ba21ee59d2265bcfe75d0a9461dd440cef
+Subproject commit f82d4beae0b9cad8e566d7a13b99fbefd70d0296
index f5a383ec8978353781a1a871e918f3b6e5579b2a..99615a0e3e4c13c161d14f79c39c0112a3574570 100644 (file)
@@ -119,14 +119,14 @@ static void start_auth_request(PgSocket *client, const char *username)
 static bool login_via_cert(PgSocket *client)
 {
        struct tls *tls = client->sbuf.tls;
-       struct tls_cert_info *cert;
-       struct tls_cert_entity *subj;
+       struct tls_cert *cert;
+       struct tls_cert_dname *subj;
 
        if (!tls) {
                disconnect_client(client, true, "TLS connection required");
                return false;
        }
-       if (tls_get_peer_cert(client->sbuf.tls, &cert) < 0 || !cert) {
+       if (tls_get_peer_cert(client->sbuf.tls, &cert, NULL) < 0 || !cert) {
                disconnect_client(client, true, "TLS client certificate required");
                return false;
        }