Changeset View
Changeset View
Standalone View
Standalone View
apps/rehash.c
/* | /* | ||||
* Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved. | * Copyright 2015-2023 The OpenSSL Project Authors. All Rights Reserved. | ||||
* Copyright (c) 2013-2014 Timo Teräs <timo.teras@gmail.com> | * Copyright (c) 2013-2014 Timo Teräs <timo.teras@gmail.com> | ||||
* | * | ||||
* Licensed under the Apache License 2.0 (the "License"). You may not use | * Licensed under the Apache License 2.0 (the "License"). You may not use | ||||
Context not available. | |||||
return *path == '/'; | return *path == '/'; | ||||
} | } | ||||
static int sk_strcmp(const char * const *a, const char * const *b) | |||||
{ | |||||
return strcmp(*a, *b); | |||||
} | |||||
/* | /* | ||||
* Process a directory; return number of errors found. | * Process a directory; return number of errors found. | ||||
*/ | */ | ||||
Context not available. | |||||
if (verbose) | if (verbose) | ||||
BIO_printf(bio_out, "Doing %s\n", dirname); | BIO_printf(bio_out, "Doing %s\n", dirname); | ||||
if ((files = sk_OPENSSL_STRING_new_null()) == NULL) { | if ((files = sk_OPENSSL_STRING_new(sk_strcmp)) == NULL) { | ||||
BIO_printf(bio_err, "Skipping %s, out of memory\n", dirname); | BIO_printf(bio_err, "Skipping %s, out of memory\n", dirname); | ||||
errs = 1; | errs = 1; | ||||
goto err; | goto err; | ||||
Context not available. |