static long socket_mtu;
#ifndef OPENSSL_NO_DTLS1
static int cert_chain = 0;
-static int dtlslisten = 0;
#endif
+static int dtlslisten = 0;
static BIO *serverinfo_in = NULL;
static const char *s_serverinfo_file = NULL;
unsigned next_proto_neg_len;
#endif
unsigned char *exportedkeymat;
- struct sockaddr client;
+ struct sockaddr_storage client;
#ifndef OPENSSL_NO_DTLS1
if(dtlslisten) {
BIO_get_fd(wbio, &fd);
}
- if(!wbio || connect(fd, &client, sizeof(struct sockaddr))) {
+ if(!wbio || connect(fd, (struct sockaddr *)&client,
+ sizeof(struct sockaddr_storage))) {
BIO_printf(bio_err, "ERROR - unable to connect\n");
return 0;
}
#endif
if (i <= 0) {
-#ifndef OPENSSL_NO_DTLS1
if ((dtlslisten && i == 0)
|| (!dtlslisten && BIO_sock_should_retry(i))) {
BIO_printf(bio_s_out, "DELAY\n");
return (1);
}
-#endif
BIO_printf(bio_err, "ERROR\n");