Skip to content

Commit 4c22e57

Browse files
committed
Merge branch 'jk/no-openssl-with-openssl-sha1'
The "imap-send" now allows to be compiled with NO_OPENSSL and OPENSSL_SHA1 defined together. * jk/no-openssl-with-openssl-sha1: imap-send: handle NO_OPENSSL even when openssl exists
2 parents 16c0906 + 997950a commit 4c22e57

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

imap-send.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
#include "parse-options.h"
3232
#include "setup.h"
3333
#include "strbuf.h"
34-
#if defined(NO_OPENSSL) && !defined(HAVE_OPENSSL_CSPRNG)
35-
typedef void *SSL;
36-
#endif
3734
#ifdef USE_CURL_FOR_IMAP_SEND
3835
#include "http.h"
3936
#endif
@@ -85,7 +82,11 @@ struct imap_server_conf {
8582

8683
struct imap_socket {
8784
int fd[2];
85+
#if defined(NO_OPENSSL) && !defined(HAVE_OPENSSL_CSPRNG)
86+
void *ssl;
87+
#else
8888
SSL *ssl;
89+
#endif
8990
};
9091

9192
struct imap_buffer {

0 commit comments

Comments
 (0)