mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 08:23:40 +02:00
OpenSSL HMAC changes for Android
Looks like Android uses OpenSSL 1.1.0, which provides an allocator for its HMAC context.
This commit is contained in:
parent
fb16e772ba
commit
64973aa334
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/hmac.h>
|
||||
|
||||
#include "HMACAuth.h"
|
||||
|
@ -16,7 +17,11 @@
|
|||
#include <QUuid>
|
||||
|
||||
HMACAuth::HMACAuth(AuthMethod authMethod)
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000
|
||||
: _hmacContext(HMAC_CTX_new())
|
||||
#else
|
||||
: _hmacContext(new(HMAC_CTX))
|
||||
#endif
|
||||
, _authMethod(authMethod) {
|
||||
HMAC_CTX_init(_hmacContext.get());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue