Minorfixes (#2)

Replace legacy function
This commit is contained in:
barrybingo 2019-04-02 12:52:25 +01:00 committed by Michał Trojnara
parent fe08daaa4f
commit 342518fcbe

View File

@ -1159,7 +1159,7 @@ static int verify_leaf_hash(X509 *leaf, const char *leafhash)
/* decode the provided hash */ /* decode the provided hash */
char *mdid = OPENSSL_strdup(leafhash); char *mdid = OPENSSL_strdup(leafhash);
char *hash = index(mdid, ':'); char *hash = strchr(mdid, ':');
if (hash == NULL) { if (hash == NULL) {
printf("Unable to parse -require-leaf-hash parameter: %s\n", leafhash); printf("Unable to parse -require-leaf-hash parameter: %s\n", leafhash);
ret = 1; ret = 1;