Fix compile warnings about unused variables

This commit is contained in:
Henrik Andersson 2017-10-17 10:32:40 +02:00
parent 02a7ec4361
commit 267db2ceff
2 changed files with 3 additions and 6 deletions

View File

@ -1772,8 +1772,6 @@ TS_SCardStatus(STREAM in, STREAM out, RD_BOOL wide)
} }
else else
{ {
int i;
logger(SmartCard, Debug, "TS_SCardTransmit(), success, state=0x%08x, proto=0x%08x", logger(SmartCard, Debug, "TS_SCardTransmit(), success, state=0x%08x, proto=0x%08x",
(unsigned) dwState, (unsigned) dwProtocol); (unsigned) dwState, (unsigned) dwProtocol);
@ -1879,8 +1877,6 @@ TS_SCardState(STREAM in, STREAM out)
} }
else else
{ {
int i;
logger(SmartCard, Debug, "TS_SCardState(), success, state=0x%08x, proto=0x%08x", logger(SmartCard, Debug, "TS_SCardState(), success, state=0x%08x, proto=0x%08x",
(unsigned) dwState, (unsigned) dwProtocol); (unsigned) dwState, (unsigned) dwProtocol);

5
ssl.c
View File

@ -161,10 +161,11 @@ rdssl_cert_to_rkey(RDSSL_CERT * cert, uint32 * key_len)
int nid; int nid;
int ret; int ret;
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
const unsigned char *p; const unsigned char *p;
int pklen;
RSA *rsa = NULL; RSA *rsa = NULL;
int pklen;
#endif
/* By some reason, Microsoft sets the OID of the Public RSA key to /* By some reason, Microsoft sets the OID of the Public RSA key to
the oid for "MD5 with RSA Encryption" instead of "RSA Encryption" the oid for "MD5 with RSA Encryption" instead of "RSA Encryption"