]> wagner.pp.ru Git - openssl-gost/engine.git/commit
gost_pmeth.c: mitigate for constness difference in copy function 159/head
authorRichard Levitte <richard@levitte.org>
Fri, 23 Aug 2019 16:55:42 +0000 (18:55 +0200)
committerRichard Levitte <richard@levitte.org>
Fri, 23 Aug 2019 17:00:06 +0000 (19:00 +0200)
commit3c14a70bb68cb0a4baae393e1644e9f67f8ce3a1
treeadd9cfa7442f846dca51a439c1cd5ea7690ac713
parenta9b81949937c9eedc91d8e70d0d43fd7b29b9297
gost_pmeth.c: mitigate for constness difference in copy function

The second argument for the pkey_copy function has been constified in
OpenSSL to be 3.0.  This is normally not a problem, but when passing a
pointer to such a function, the compiler does complain.

This change solves the issue by looking at the macros
OPENSSL_VERSION_MAJOR, which is new in OpenSSL to be 3.0, and set
constness based on that.

Fixes #154
gost_pmeth.c