Skip to content

Commit

Permalink
Merge pull request bumptech#61 from vincentbernat/feature/ecdhe
Browse files Browse the repository at this point in the history
Add support for ECDHE cipher suites.
  • Loading branch information
Jamie Turner committed Dec 12, 2011
2 parents caa8fde + f8a66d8 commit 3906fa8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions stud.c
Expand Up @@ -276,6 +276,14 @@ static int init_dh(SSL_CTX *ctx, const char *cert) {
LOG("{core} DH initialized with %d bit key\n", 8*DH_size(dh));
DH_free(dh);

#ifdef NID_X9_62_prime256v1
EC_KEY *ecdh = NULL;
ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
SSL_CTX_set_tmp_ecdh(ctx,ecdh);
EC_KEY_free(ecdh);
LOG("{core} ECDH Initialized with NIST P-256\n");
#endif

return 0;
}
#endif /* OPENSSL_NO_DH */
Expand Down

0 comments on commit 3906fa8

Please sign in to comment.