From 04aeffbe8f6d452529671205fa2ded43103e1a46 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Mon, 24 Sep 2018 12:55:42 +0200 Subject: Doc: Describe behavior of QSslConfiguration::caCertificates() on iOS In iOS, the system certificates cannot be accessed, so this function will return an empty list for the default configuration. Task-number: QTBUG-60407 Change-Id: I0d691a0dd5e6367594e71c7ebccfbdc866d4a3f0 Reviewed-by: Edward Welbourne Reviewed-by: Andy Shaw --- src/network/ssl/qsslconfiguration.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/network/ssl/qsslconfiguration.cpp b/src/network/ssl/qsslconfiguration.cpp index 46df181496..52ddf8bb88 100644 --- a/src/network/ssl/qsslconfiguration.cpp +++ b/src/network/ssl/qsslconfiguration.cpp @@ -641,6 +641,10 @@ QList QSslConfiguration::caCertificates() const The CA certificate database is used by the socket during the handshake phase to validate the peer's certificate. + \note The default configuration uses the system CA certificate database. If + that is not available (as is commonly the case on iOS), the default database + is empty. + \sa caCertificates() */ void QSslConfiguration::setCaCertificates(const QList &certificates) -- cgit v1.2.3