mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fixes for key loading errors in snifftest application.
This commit is contained in:
@ -353,6 +353,9 @@ static int load_key(const char* name, const char* server, int port,
|
|||||||
printf("Please run directly from sslSniffer/sslSnifferTest dir\n");
|
printf("Please run directly from sslSniffer/sslSnifferTest dir\n");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
ret = 0;
|
||||||
|
}
|
||||||
|
|
||||||
keyFile = XSTRTOK(NULL, ",", &ptr);
|
keyFile = XSTRTOK(NULL, ",", &ptr);
|
||||||
}
|
}
|
||||||
@ -530,7 +533,10 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (server) {
|
if (server) {
|
||||||
load_key(sniName, server, port, keyFiles, NULL, err);
|
ret = load_key(sniName, server, port, keyFiles, NULL, err);
|
||||||
|
if (ret != 0) {
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user