Debian Codegraph @

lib_pypy/_cffi_ssl/_cffi_src/openssl/ecdh.py

raw symbols SCIP
1 # This file is dual licensed under the terms of the Apache License, Version
2 # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 # for complete details.
4
5 from __future__ import absolute_import, division, print_function
6
7 INCLUDES = """
8 #include <openssl/ecdh.h>
9 """
10
11 TYPES = """
12 static const int Cryptography_HAS_SET_ECDH_AUTO;
13 """
14
15 FUNCTIONS = """
16 int ECDH_compute_key(void *, size_t, const EC_POINT *, EC_KEY *,
17 void *(*)(const void *, size_t, void *, size_t *));
18 long SSL_CTX_set_ecdh_auto(SSL_CTX *, int);
19 """
20
21 CUSTOMIZATIONS = """
22 #ifndef SSL_CTX_set_ecdh_auto
23 static const long Cryptography_HAS_SET_ECDH_AUTO = 0;
24 long (*SSL_CTX_set_ecdh_auto)(SSL_CTX *, int) = NULL;
25 #else
26 static const long Cryptography_HAS_SET_ECDH_AUTO = 1;
27 #endif
28 """