Use |strtok| rather than |strtok_r|.
As ever, Windows doesn't support the correct function. Change-Id: If16c979e591abda01ce3bf591b9162c210f03932
This commit is contained in:
parent
0d62f26c36
commit
67251f2da9
@ -230,12 +230,11 @@ static bool InstallCertificate(SSL *ssl) {
|
||||
if (!config->digest_prefs.empty()) {
|
||||
std::unique_ptr<char, Free<char>> digest_prefs(
|
||||
strdup(config->digest_prefs.c_str()));
|
||||
char *tokptr = nullptr;
|
||||
std::vector<int> digest_list;
|
||||
|
||||
for (;;) {
|
||||
char *token = strtok_r(digest_list.empty() ? digest_prefs.get() : nullptr,
|
||||
",", &tokptr);
|
||||
char *token =
|
||||
strtok(digest_list.empty() ? digest_prefs.get() : nullptr, ",");
|
||||
if (token == nullptr) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user