Skip to content

Commit

Permalink
Merge 6db22dc into b9690ab
Browse files Browse the repository at this point in the history
  • Loading branch information
Sp1l committed Jan 24, 2015
2 parents b9690ab + 6db22dc commit def269b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/cryptography/hazmat/bindings/openssl/rand.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

INCLUDES = """
#include <openssl/rand.h>
#include <openssl/opensslv.h>
"""

TYPES = """
Expand All @@ -31,6 +32,11 @@
"""

CUSTOMIZATIONS = """
#if !defined(LIBRESSL_VERSION_NUMBER)
int RAND_egd(const char *);
int RAND_egd_bytes(const char *, int);
int RAND_query_egd_bytes(const char *, unsigned char *, int);
#endif
"""

CONDITIONAL_NAMES = {}
2 changes: 1 addition & 1 deletion src/cryptography/hazmat/bindings/openssl/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
#endif
/* ALPN was added in OpenSSL 1.0.2. */
#if OPENSSL_VERSION_NUMBER < 0x10002001L
#if OPENSSL_VERSION_NUMBER < 0x10002001L && !defined (LIBRESSL_VERSION_NUMBER)
int (*SSL_CTX_set_alpn_protos)(SSL_CTX *,
const unsigned char *,
unsigned) = NULL;
Expand Down

0 comments on commit def269b

Please sign in to comment.