<div dir="ltr"><div><div><div><div>I'm trying to update a crypto library for crtmpserver to work with openssl 1.1.0.  The software is no longer actively maintained and my c++ skills are somewhat rudimentary but I keep getting a compilation error for something that seems trivial.<br><br></div>Here's the code snippet:<br><font size="1">bool DHWrapper::CopyPublicKey(uint8_t *pDst, int32_t dstLength) {<br>    if (_pDH == NULL) {<br>        FATAL("DHWrapper not initialized");<br>        return false;<br>    }<br>    BIGNUM *_keyPublic,*_keyPrivate;<br>    _keyPublic = BN_new();<br>    _keyPrivate = BN_new();<br>    DH_get0_key( _pDH, *_keyPublic, *_keyPrivate );<br>    CopyKey(_keyPublic, pDst, dstLength);<br>    return true;<br>}<br><br></font></div><font size="1"><font size="2">Here's the compilation error:<br><font size="1">/build/crtmpserver/src/crtmpserver/sources/common/src/utils/misc/crypto.cpp: In member function ‘bool DHWrapper::CopyPublicKey(uint8_t*, int32_t)’:<br>/build/crtmpserver/src/crtmpserver/sources/common/src/utils/misc/crypto.cpp:92:47: error: cannot convert ‘BIGNUM {aka bignum_st}’ to ‘const BIGNUM** {aka const bignum_st**}’ for argument ‘2’ to ‘void DH_get0_key(const DH*, const BIGNUM**, const BIGNUM**)’<br>  DH_get0_key( _pDH, *_keyPublic, *_keyPrivate );<br>                                               ^<br>make[2]: *** [common/CMakeFiles/common.dir/build.make:591: common/CMakeFiles/common.dir/build/crtmpserver/src/crtmpserver/sources/common/src/utils/misc/crypto.cpp.o] Error 1<br>make[1]: *** [CMakeFiles/Makefile2:231: common/CMakeFiles/common.dir/all] Error 2<br>make: *** [Makefile:130: all] Error 2<br><br></font></font></font></div><font size="1"><font size="2"><font size="1"><font size="2">What am I doing wrong? Thanks,<br></font></font></font></font></div><font size="1"><font size="2"><font size="1"><font size="2">Robert<br></font></font></font></font><div><div><font size="1"><font size="2"><br></font></font></div></div></div>