code style
This commit is contained in:
@@ -242,7 +242,8 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt
|
|||||||
}
|
}
|
||||||
if (strcmp(peerName, hostname) != 0) {
|
if (strcmp(peerName, hostname) != 0) {
|
||||||
char* dotpos = NULL;
|
char* dotpos = NULL;
|
||||||
if (peerName[0]=='*' && peerName[1]=='.' && (dotpos=strchr((char*)hostname, '.')) && strcmp(peerName+2, dotpos+1)==0) {
|
if (peerName[0] == '*' && peerName[1] == '.' && (dotpos=strchr((char*)hostname, '.'))
|
||||||
|
&& strcmp(peerName+2, dotpos+1) == 0) {
|
||||||
// wildcard matches
|
// wildcard matches
|
||||||
} else if (isError("subject", 1, 0)) {
|
} else if (isError("subject", 1, 0)) {
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user