Skip to content

Commit

Permalink
Merge pull request #307 from kronosnet/openssl3
Browse files Browse the repository at this point in the history
[openssl] allow use of deprecated HMAC interface with openssl 3.0
  • Loading branch information
fabbione committed Jun 10, 2020
2 parents 1428053 + b5702c1 commit 7cdeb08
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libknet/crypto_openssl.c
Expand Up @@ -9,6 +9,18 @@

#include "config.h"

/*
* allow to build with openssl 3.0 that has deprecated
* use of direct access to HMAC API.
*
* knet will require some heavy rewrite to port to 3.0,
* but it clashes with the re-key feature branch.
*
* use path of less resistance for now, then we will
* port at a later stage.
*/
#define OPENSSL_API_COMPAT 0x1010000L

#include <string.h>
#include <errno.h>
#include <dlfcn.h>
Expand Down

0 comments on commit 7cdeb08

Please sign in to comment.