summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-10-22 17:11:50 -0600
committerEduardo Chappa <chappa@washington.edu>2021-10-22 17:11:50 -0600
commit37fc53a99bbd21aa255c8e104aa7e1827e8975e2 (patch)
tree6e6d6141f969c47647aefe7735443eb31d329cfd /imap
parentc3cfdbf77188f1a63888dc4c92c60a6f6259d91b (diff)
downloadalpine-37fc53a99bbd21aa255c8e104aa7e1827e8975e2.tar.xz
* Fix the type of some flags for openssl from int to long.
Diffstat (limited to 'imap')
-rw-r--r--imap/src/osdep/unix/ssl_unix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c
index eb26ec07..e9243769 100644
--- a/imap/src/osdep/unix/ssl_unix.c
+++ b/imap/src/osdep/unix/ssl_unix.c
@@ -74,7 +74,7 @@ typedef struct ssl_stream {
#include "sslio.h"
/* Function prototypes */
-int ssl_disable_mask(int ssl_version, int direction);
+long ssl_disable_mask(int ssl_version, int direction);
const SSL_METHOD *ssl_connect_mthd(int flag, int *minv, int *maxv);
static SSLSTREAM *ssl_start(TCPSTREAM *tstream,char *host,unsigned long flags);
static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags);
@@ -213,7 +213,7 @@ SSLSTREAM *ssl_aopen (NETMBX *mb,char *service,char *usrbuf)
typedef struct ssl_disable_s {
int version;
- int disable_code;
+ long disable_code;
} SSL_DISABLE_S;
SSL_DISABLE_S ssl_disable[] = {
@@ -237,7 +237,7 @@ SSL_DISABLE_S ssl_disable[] = {
* If direction is -1, returns mask to disable versions less than given version.
* If direction is +1, returns mask to disable versions bigger than given version.
*/
-int ssl_disable_mask(int ssl_version, int direction)
+long ssl_disable_mask(int ssl_version, int direction)
{
int rv = 0;
int i;
@@ -393,7 +393,7 @@ static char *ssl_start_work (SSLSTREAM *stream,char *host,unsigned long flags)
X509 *cert;
unsigned long sl,tl;
int minv, maxv;
- int masklow, maskhigh;
+ long masklow, maskhigh;
char *s,*t,*err,tmp[MAILTMPLEN], buf[256];
char *CAfile, *CApath, *ciphers;
sslcertificatequery_t scq =