projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
98de77d
)
... and also redo the SSL stuff.
author
Alfons Hoogervorst
<alfons@proteus.demon.nl>
Thu, 12 Jul 2001 15:42:40 +0000
(15:42 +0000)
committer
Alfons Hoogervorst
<alfons@proteus.demon.nl>
Thu, 12 Jul 2001 15:42:40 +0000
(15:42 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index 798b28aed85d00a110c4af2b852c1c06e2ec9007..0fde8f1e0185f97e645e592e3d1e9c0e4456775d 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-83,6
+83,10
@@
gboolean debug_mode = FALSE;
static gint lock_socket = -1;
static gint lock_socket_tag = 0;
static gint lock_socket = -1;
static gint lock_socket_tag = 0;
+#if USE_SSL
+SSL_CTX *ssl_ctx;
+#endif
+
static struct Cmd {
gboolean receive;
gboolean receive_all;
static struct Cmd {
gboolean receive;
gboolean receive_all;
@@
-233,6
+237,22
@@
int main(int argc, char *argv[])
gpgme_register_idle(idle_function_for_gpgme);
#endif
gpgme_register_idle(idle_function_for_gpgme);
#endif
+#if USE_SSL
+ {
+ SSL_METHOD *meth;
+
+ SSLeay_add_ssl_algorithms();
+ meth = SSLv2_client_method();
+ SSL_load_error_strings();
+ ssl_ctx = SSL_CTX_new(meth);
+ if(ssl_ctx == NULL) {
+ debug_print(_("SSL disabled\n"));
+ } else {
+ debug_print(_("SSL loaded: \n"));
+ }
+ }
+#endif
+
prefs_common_save_config();
prefs_filter_read_config();
prefs_filter_write_config();
prefs_common_save_config();
prefs_filter_read_config();
prefs_filter_write_config();
@@
-278,6
+298,12
@@
int main(int argc, char *argv[])
gtk_main();
gtk_main();
+#if USE_SSL
+ if(ssl_ctx) {
+ SSL_CTX_free(ssl_ctx);
+ }
+#endif
+
return 0;
}
return 0;
}