Commit cb241bdc authored by unknown's avatar unknown

Use "const char*" for variable found, forte complains "Cannot use const char*...

Use "const char*" for variable found, forte complains "Cannot use const char* to initialize char*" otherwise


parent e3d7061d
......@@ -1080,7 +1080,7 @@ int X509_NAME_get_index_by_NID(X509_NAME* name,int nid, int lastpos)
switch (nid) {
case NID_commonName:
char* found = strstr(start, "/CN=");
const char* found = strstr(start, "/CN=");
if (found) {
found += 4; // advance to str
idx = found - start + lastpos + 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment