~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to camel/camel-tcp-stream-ssl.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 */
22
22
 
23
23
/* NOTE: This is the default implementation of CamelTcpStreamSSL,
24
 
 * used when the Mozilla NSS libraries are used. If you configured
25
 
 * OpenSSL support instead, then this file won't be compiled and
26
 
 * the CamelTcpStreamSSL implementation in camel-tcp-stream-openssl.c
27
 
 * will be used instead.
 
24
 * used when the Mozilla NSS libraries are used.
28
25
 */
29
26
 
30
27
#ifdef HAVE_CONFIG_H
1067
1064
 
1068
1065
        SSL_SetURL (ssl_fd, ssl->priv->expected_host);
1069
1066
 
1070
 
        /* NSS provides a default implementation for the SSL_GetClientAuthDataHook callback
1071
 
         * but does not enable it by default. It must be explicltly requested by the application.
1072
 
         * See: http://www.mozilla.org/projects/security/pki/nss/ref/ssl/sslfnc.html#1126622 */
1073
 
        SSL_GetClientAuthDataHook (ssl_fd, (SSLGetClientAuthData)&NSS_GetClientAuthData, NULL );
1074
 
 
1075
 
        /* NSS provides _and_ installs a default implementation for the
1076
 
         * SSL_AuthCertificateHook callback so we _don't_ need to install one. */
 
1067
        /* NSS provides a default implementation for the SSL_GetClientAuthDataHook callback
 
1068
         * but does not enable it by default. It must be explicltly requested by the application.
 
1069
         * See: http://www.mozilla.org/projects/security/pki/nss/ref/ssl/sslfnc.html#1126622 */
 
1070
        SSL_GetClientAuthDataHook (ssl_fd, (SSLGetClientAuthData)&NSS_GetClientAuthData, NULL );
 
1071
 
 
1072
        /* NSS provides _and_ installs a default implementation for the
 
1073
         * SSL_AuthCertificateHook callback so we _don't_ need to install one. */
1077
1074
        SSL_BadCertHook (ssl_fd, ssl_bad_cert, ssl);
1078
1075
 
1079
1076
        ssl->priv->ssl_mode = TRUE;
1315
1312
        return sockaddr_from_praddr(&addr, len);
1316
1313
}
1317
1314
 
 
1315
/**
 
1316
 * camel_tcp_stream_ssl_sockfd:
 
1317
 * @stream: a #CamelTcpStreamSSL
 
1318
 *
 
1319
 * FIXME Document me!
 
1320
 *
 
1321
 * Since: 2.30
 
1322
 **/
 
1323
PRFileDesc *
 
1324
camel_tcp_stream_ssl_sockfd (CamelTcpStreamSSL *stream)
 
1325
{
 
1326
        return stream->priv->sockfd;
 
1327
}
 
1328
 
1318
1329
#endif /* HAVE_NSS */