pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations 7+ messages / 1 participants [nested] [flat]
* pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations @ 2016-10-07 09:54 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2016-10-07 09:54 UTC (permalink / raw) To: pgsql-committers Clear OpenSSL error queue after failed X509_STORE_load_locations() call. Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/275bf98601b230e530003ef20193d095b9309c24 Modified Files -------------- src/interfaces/libpq/fe-secure-openssl.c | 1 + 1 file changed, 1 insertion(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations @ 2016-10-07 09:54 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2016-10-07 09:54 UTC (permalink / raw) To: pgsql-committers Clear OpenSSL error queue after failed X509_STORE_load_locations() call. Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch. Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/4d3ecbfee9dbe34fe20991a5a402b1f949814928 Modified Files -------------- src/interfaces/libpq/fe-secure-openssl.c | 1 + 1 file changed, 1 insertion(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations @ 2016-10-07 09:54 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2016-10-07 09:54 UTC (permalink / raw) To: pgsql-committers Clear OpenSSL error queue after failed X509_STORE_load_locations() call. Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/f0ca540374ee89b45bce83b499327ffd934344a8 Modified Files -------------- src/interfaces/libpq/fe-secure-openssl.c | 1 + 1 file changed, 1 insertion(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations @ 2016-10-07 09:54 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2016-10-07 09:54 UTC (permalink / raw) To: pgsql-committers Clear OpenSSL error queue after failed X509_STORE_load_locations() call. Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/418cd758abeb5bb7d359788a0599daa6de016b00 Modified Files -------------- src/interfaces/libpq/fe-secure.c | 1 + 1 file changed, 1 insertion(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations @ 2016-10-07 09:54 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2016-10-07 09:54 UTC (permalink / raw) To: pgsql-committers Clear OpenSSL error queue after failed X509_STORE_load_locations() call. Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b5afc6f678616900ecfd69d6ebaa90533b231c65 Modified Files -------------- src/interfaces/libpq/fe-secure.c | 1 + 1 file changed, 1 insertion(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations @ 2016-10-07 09:54 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2016-10-07 09:54 UTC (permalink / raw) To: pgsql-committers Clear OpenSSL error queue after failed X509_STORE_load_locations() call. Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/5d5dc6f68aeff20822ae28fae6c51f634c878278 Modified Files -------------- src/interfaces/libpq/fe-secure.c | 1 + 1 file changed, 1 insertion(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations @ 2016-10-07 09:54 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 7+ messages in thread From: Heikki Linnakangas @ 2016-10-07 09:54 UTC (permalink / raw) To: pgsql-committers Clear OpenSSL error queue after failed X509_STORE_load_locations() call. Leaving the error in the error queue used to be harmless, because the X509_STORE_load_locations() call used to be the last step in initialize_SSL(), and we would clear the queue before the next SSL_connect() call. But previous commit moved things around. The symptom was that if a CRL file was not found, and one of the subsequent initialization steps, like loading the client certificate or private key, failed, we would incorrectly print the "no such file" error message from the earlier X509_STORE_load_locations() call as the reason. Backpatch to all supported versions, like the previous patch. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e84e4761f7ff83d657852d0d0a363868be715df2 Modified Files -------------- src/interfaces/libpq/fe-secure.c | 1 + 1 file changed, 1 insertion(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2016-10-07 09:54 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-10-07 09:54 pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-07 09:54 pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-07 09:54 pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-07 09:54 pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-07 09:54 pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-07 09:54 pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations Heikki Linnakangas <heikki.linnakangas@iki.fi> 2016-10-07 09:54 pgsql: Clear OpenSSL error queue after failed X509_STORE_load_locations Heikki Linnakangas <heikki.linnakangas@iki.fi>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox