Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
evolution-data-server
Commits
87238717
Commit
87238717
authored
Sep 25, 2009
by
Craig Ringer
Committed by
Dbus-hybrid
Sep 25, 2009
Browse files
BUG#270893 Support client certificates for IMAP
parent
8890f055
Changes
1
Hide whitespace changes
Inline
Side-by-side
camel/camel-tcp-stream-ssl.c
View file @
87238717
...
...
@@ -1067,8 +1067,13 @@ enable_ssl (CamelTcpStreamSSL *ssl, PRFileDesc *fd)
SSL_SetURL
(
ssl_fd
,
ssl
->
priv
->
expected_host
);
/*SSL_GetClientAuthDataHook (sslSocket, ssl_get_client_auth, (gpointer) certNickname);*/
/*SSL_AuthCertificateHook (ssl_fd, ssl_auth_cert, (gpointer) CERT_GetDefaultCertDB ());*/
/* NSS provides a default implementation for the SSL_GetClientAuthDataHook callback
* but does not enable it by default. It must be explicltly requested by the application.
* See: http://www.mozilla.org/projects/security/pki/nss/ref/ssl/sslfnc.html#1126622 */
SSL_GetClientAuthDataHook
(
ssl_fd
,
(
SSLGetClientAuthData
)
&
NSS_GetClientAuthData
,
NULL
);
/* NSS provides _and_ installs a default implementation for the
* SSL_AuthCertificateHook callback so we _don't_ need to install one. */
SSL_BadCertHook
(
ssl_fd
,
ssl_bad_cert
,
ssl
);
ssl
->
priv
->
ssl_mode
=
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment