mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
All tests passed
This commit is contained in:
@@ -717,7 +717,7 @@ int x509_key_usage_from_name(int *flag, const char *name)
|
||||
int i;
|
||||
for (i = 0; i < x509_key_usages_count; i++) {
|
||||
if (strcmp(name, x509_key_usages[i]) == 0) {
|
||||
*flag = i;
|
||||
*flag = 1 << i;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user