Skip to content

Commit

Permalink
Build fixes for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
dhohndel authored and David Woodhouse committed Oct 15, 2008
1 parent 8af41ba commit fb3c0a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dtls.c
Expand Up @@ -28,6 +28,7 @@
#include <unistd.h>
#include <openssl/err.h>
#include <fcntl.h>
#include <string.h>

#include "openconnect.h"

Expand Down Expand Up @@ -175,9 +176,11 @@ int connect_dtls_socket(struct openconnect_info *vpninfo)
dtls_bio = BIO_new_socket(dtls_fd, BIO_NOCLOSE);
SSL_set_bio(dtls_ssl, dtls_bio, dtls_bio);

#ifndef __APPLE__
/* XXX Cargo cult programming. Other DTLS code does this, and it might
avoid http://rt.openssl.org/Ticket/Display.html?id=1703 */
BIO_ctrl(dtls_bio, BIO_CTRL_DGRAM_MTU_DISCOVER, 0, NULL);
#endif

#ifndef SSL_OP_CISCO_ANYCONNECT
#define SSL_OP_CISCO_ANYCONNECT 0x8000
Expand Down

0 comments on commit fb3c0a9

Please sign in to comment.