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) ...@@ -1080,7 +1080,7 @@ int X509_NAME_get_index_by_NID(X509_NAME* name,int nid, int lastpos)
switch (nid) { switch (nid) {
case NID_commonName: case NID_commonName:
char* found = strstr(start, "/CN="); const char* found = strstr(start, "/CN=");
if (found) { if (found) {
found += 4; // advance to str found += 4; // advance to str
idx = found - start + lastpos + 1; 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