X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fecdh.c;h=f94555dbd7cdb6cf5c43229ca591dca644da96a4;hb=70a1a5594af5d4e6a364186b42ba4e34c676009b;hp=871f9fbd2f89a67400031e367217772c24c8f83e;hpb=19be9cf7150858311f7898fa3fb525d692d02f64;p=tinc diff --git a/src/openssl/ecdh.c b/src/openssl/ecdh.c index 871f9fbd..f94555db 100644 --- a/src/openssl/ecdh.c +++ b/src/openssl/ecdh.c @@ -1,6 +1,6 @@ /* ecdh.c -- Diffie-Hellman key exchange handling - Copyright (C) 2011 Guus Sliepen + Copyright (C) 2011-2012 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -41,7 +41,7 @@ bool ecdh_generate_public(ecdh_t *ecdh, void *pubkey) { logger(DEBUG_ALWAYS, LOG_ERR, "Generating EC key failed: %s", ERR_error_string(ERR_get_error(), NULL)); return false; } - + const EC_POINT *point = EC_KEY_get0_public_key(*ecdh); if(!point) { EC_KEY_free(*ecdh);