fixes before merge

This commit is contained in:
Moisés Guimarães
2015-12-28 19:33:06 -03:00
parent 2e00b12b69
commit 487bb4eb5e
2 changed files with 4 additions and 3 deletions

View File

@@ -484,7 +484,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
#ifndef WOLFSSL_VXWORKS
while ((ch = mygetopt(argc, argv,
"?gdeDusmNrwRitfxXUPCVh:p:v:l:A:c:k:Z:b:zS:L:ToO:aB:W:")) != -1) {
"?gdeDusmNrwRitfxXUPCVh:p:v:l:A:c:k:Z:b:zS:F:L:ToO:aB:W:")) != -1) {
switch (ch) {
case '?' :
Usage();

View File

@@ -8358,7 +8358,7 @@ static int BuildCertificateStatus(WOLFSSL* ssl, byte type, buffer* status,
idx += status[i].length;
}
if (ssl->keys.encryptionOn) {
if (IsEncryptionOn(ssl, 1)) {
byte* input;
int inputSz = idx - RECORD_HEADER_SZ;
@@ -8367,7 +8367,8 @@ static int BuildCertificateStatus(WOLFSSL* ssl, byte type, buffer* status,
return MEMORY_E;
XMEMCPY(input, output + RECORD_HEADER_SZ, inputSz);
sendSz = BuildMessage(ssl, output, sendSz, input,inputSz,handshake);
sendSz = BuildMessage(ssl, output, sendSz, input, inputSz,
handshake, 1);
XFREE(input, ssl->heap, DYNAMIC_TYPE_TMP_BUFFER);
if (sendSz < 0)