summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypt.c b/src/lib/crypt.c
index c9129a61..75284676 100644
--- a/src/lib/crypt.c
+++ b/src/lib/crypt.c
@@ -418,7 +418,7 @@ static int crypt_dh_srv(int fd,
uint8_t * s)
{
#ifdef HAVE_OPENSSL
- return openssl_ecdh_clt(fd, s);
+ return openssl_ecdh_srv(fd, s);
#else
(void) fd;
@@ -432,7 +432,7 @@ static int crypt_dh_clt(int fd,
uint8_t * s)
{
#ifdef HAVE_OPENSSL
- return openssl_ecdh_srv(fd, s);
+ return openssl_ecdh_clt(fd, s);
#else
(void) fd;