| 923 |
923 |
| 924 static gboolean |
924 static gboolean |
| 925 plugin_load(PurplePlugin *plugin) |
925 plugin_load(PurplePlugin *plugin) |
| 926 { |
926 { |
| 927 #ifdef HAVE_GNUTLS |
927 #ifdef HAVE_GNUTLS |
| |
928 if(!purple_ssl_get_ops()) { |
| |
929 purple_ssl_set_ops(&ssl_ops); |
| |
930 } |
| |
931 |
| |
932 /* Init GNUTLS now so others can use it even if sslconn never does */ |
| |
933 ssl_gnutls_init_gnutls(); |
| |
934 |
| 928 /* Register that we're providing an X.509 CertScheme */ |
935 /* Register that we're providing an X.509 CertScheme */ |
| 929 /* @TODO : error checking */ |
936 /* @TODO : error checking */ |
| 930 purple_certificate_register_scheme( &x509_gnutls ); |
937 purple_certificate_register_scheme( &x509_gnutls ); |
| 931 |
|
| 932 if(!purple_ssl_get_ops()) { |
|
| 933 purple_ssl_set_ops(&ssl_ops); |
|
| 934 } |
|
| 935 |
|
| 936 /* Init GNUTLS now so others can use it even if sslconn never does */ |
|
| 937 ssl_gnutls_init_gnutls(); |
|
| 938 |
938 |
| 939 return TRUE; |
939 return TRUE; |
| 940 #else |
940 #else |
| 941 return FALSE; |
941 return FALSE; |
| 942 #endif |
942 #endif |