Skip to content

Commit

Permalink
Remove a few more unused bindings (#8977)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed May 28, 2023
1 parent 93c96b7 commit f639144
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/_cffi_src/openssl/bignum.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
int BN_num_bytes(const BIGNUM *);
int BN_mod(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
/* The following 3 prime methods are exposed for Tribler. */
int BN_generate_prime_ex(BIGNUM *, int, int, const BIGNUM *,
const BIGNUM *, BN_GENCB *);
Expand Down
1 change: 0 additions & 1 deletion src/_cffi_src/openssl/ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
size_t EC_get_builtin_curves(EC_builtin_curve *, size_t);
EC_KEY *EC_KEY_new(void);
void EC_KEY_free(EC_KEY *);
EC_KEY *EC_KEY_new_by_curve_name(int);
Expand Down
1 change: 0 additions & 1 deletion src/_cffi_src/openssl/pem.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
int PEM_write_bio_X509_CRL(BIO *, X509_CRL *);
PKCS7 *PEM_read_bio_PKCS7(BIO *, PKCS7 **, pem_password_cb *, void *);
int PEM_write_bio_PKCS7(BIO *, PKCS7 *);
DH *PEM_read_bio_DHparams(BIO *, DH **, pem_password_cb *, void *);
Expand Down
2 changes: 0 additions & 2 deletions src/_cffi_src/openssl/pkcs7.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@

FUNCTIONS = """
void PKCS7_free(PKCS7 *);
PKCS7 *PKCS7_sign(X509 *, EVP_PKEY *, Cryptography_STACK_OF_X509 *,
BIO *, int);
int SMIME_write_PKCS7(BIO *, PKCS7 *, BIO *, int);
int PEM_write_bio_PKCS7_stream(BIO *, PKCS7 *, BIO *, int);
PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *, X509 *, EVP_PKEY *,
Expand Down
4 changes: 0 additions & 4 deletions src/_cffi_src/openssl/ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
static const long Cryptography_HAS_SSL_ST;
static const long Cryptography_HAS_TLS_ST;
static const long Cryptography_HAS_TLSv1_3_FUNCTIONS;
static const long Cryptography_HAS_DTLS;
static const long Cryptography_HAS_SIGALGS;
static const long Cryptography_HAS_PSK;
static const long Cryptography_HAS_PSK_TLSv1_3;
Expand Down Expand Up @@ -336,8 +335,6 @@
const char *SSL_get_version(const SSL *);
int SSL_version(const SSL *);
void *SSL_get_ex_data(const SSL *, int);
void SSL_set_tlsext_host_name(SSL *, char *);
void SSL_CTX_set_tlsext_servername_callback(
SSL_CTX *,
Expand Down Expand Up @@ -498,7 +495,6 @@
static const long Cryptography_HAS_DTLS_GET_DATA_MTU = 1;
#endif
static const long Cryptography_HAS_DTLS = 1;
/* Wrap DTLSv1_get_timeout to avoid cffi to handle a 'struct timeval'. */
long Cryptography_DTLSv1_get_timeout(SSL *ssl, time_t *ptv_sec,
long *ptv_usec) {
Expand Down
1 change: 0 additions & 1 deletion src/_cffi_src/openssl/x509name.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
ASN1_OBJECT *X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *);
ASN1_STRING *X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *);
int X509_NAME_add_entry(X509_NAME *, X509_NAME_ENTRY *, int, int);
int X509_NAME_add_entry_by_NID(X509_NAME *, int, int, const unsigned char *,
int, int, int);
Expand Down

0 comments on commit f639144

Please sign in to comment.