diff options
| author | Steven Fackler <[email protected]> | 2016-08-09 23:13:56 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-08-09 23:13:56 -0700 |
| commit | 35c79d176811af9e5cb0c012fe8daecbf7b0cdd4 (patch) | |
| tree | ddd891b25817a3bfbc67a466ccaf2668d2de2400 /openssl/src/c_helpers.c | |
| parent | Test hmac features (diff) | |
| download | rust-openssl-35c79d176811af9e5cb0c012fe8daecbf7b0cdd4.tar.xz rust-openssl-35c79d176811af9e5cb0c012fe8daecbf7b0cdd4.zip | |
Fix build
Diffstat (limited to 'openssl/src/c_helpers.c')
| -rw-r--r-- | openssl/src/c_helpers.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openssl/src/c_helpers.c b/openssl/src/c_helpers.c index 4a2021e4..13041956 100644 --- a/openssl/src/c_helpers.c +++ b/openssl/src/c_helpers.c @@ -15,6 +15,18 @@ STACK_OF(X509_EXTENSION) *rust_X509_get_extensions(X509 *x) { return x->cert_info ? x->cert_info->extensions : NULL; } +DH *rust_DH_new_from_params(BIGNUM *p, BIGNUM *g, BIGNUM *q) { + DH *dh; + + if ((dh = DH_new()) == NULL) { + return NULL; + } + dh->p = p; + dh->g = g; + dh->q = q; + return dh; +} + #if OPENSSL_VERSION_NUMBER < 0x10000000L int rust_HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int key_len, const EVP_MD *md, ENGINE *impl) { HMAC_Init_ex(ctx, key, key_len, md, impl); |