VC6 fixes

This commit is contained in:
roytam1 2018-11-19 22:55:49 +08:00
parent 9d7cba4381
commit 2598eb66c9

View File

@ -1980,6 +1980,10 @@ ssl3_CipherGCMBypass(ssl3KeyMaterial *keys,
unsigned char nonce[12]; unsigned char nonce[12];
unsigned int uOutLen; unsigned int uOutLen;
CK_GCM_PARAMS gcmParams; CK_GCM_PARAMS gcmParams;
void *cx;
BLapiInitContextFunc initFn;
SSLCipher encode, decode;
SSLDestroy destroy;
static const int tagSize = 16; static const int tagSize = 16;
static const int explicitNonceLen = 8; static const int explicitNonceLen = 8;
@ -2016,11 +2020,11 @@ ssl3_CipherGCMBypass(ssl3KeyMaterial *keys,
gcmParams.ulAADLen = additionalDataLen; gcmParams.ulAADLen = additionalDataLen;
gcmParams.ulTagBits = tagSize * 8; gcmParams.ulTagBits = tagSize * 8;
void *cx = keys->cipher_context; cx = keys->cipher_context;
BLapiInitContextFunc initFn = (BLapiInitContextFunc)NULL; initFn = (BLapiInitContextFunc)NULL;
SSLCipher encode = (SSLCipher)NULL; encode = (SSLCipher)NULL;
SSLCipher decode = (SSLCipher)NULL; decode = (SSLCipher)NULL;
SSLDestroy destroy = (SSLDestroy)NULL; destroy = (SSLDestroy)NULL;
switch (calg) { switch (calg) {
case calg_aes_gcm: case calg_aes_gcm: