diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2020-11-03 18:15:46 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-11-11 16:05:56 +0100 |
commit | 69d16b70cf84f0e290990de424274fde20420b78 (patch) | |
tree | 8ef65500fdd8d76dce2809277fcf59f80bb0141c /doc/internal/man3 | |
parent | test/recipes/30-test_evp_libctx.t: use fips-and-base.cnf (diff) | |
download | openssl-69d16b70cf84f0e290990de424274fde20420b78.tar.xz openssl-69d16b70cf84f0e290990de424274fde20420b78.zip |
Avoid duplicate ends_with_dirsep functions
Refactor them into inline ossl_ends_with_dirsep function in
internal/cryptlib.h.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13306)
Diffstat (limited to 'doc/internal/man3')
-rw-r--r-- | doc/internal/man3/ossl_ends_with_dirsep.pod | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/internal/man3/ossl_ends_with_dirsep.pod b/doc/internal/man3/ossl_ends_with_dirsep.pod new file mode 100644 index 0000000000..1924ab50f0 --- /dev/null +++ b/doc/internal/man3/ossl_ends_with_dirsep.pod @@ -0,0 +1,38 @@ +=pod + +=head1 NAME + +ossl_ends_with_dirsep - internal function to detect whether a path +ends with directory separator + +=head1 SYNOPSIS + + #include "internal/cryptlib.h" + + int ossl_ends_with_dirsep(const char *path); + +=head1 DESCRIPTION + +ossl_ends_with_dirsep() detects whether the I<path> ends with a directory +separator in platform agnostic way. + +=head1 RETURN VALUES + +ossl_ends_with_dirsep() returns 1 if the I<path> ends with a directory +separator, 0 otherwise. + +=head1 HISTORY + +The function described here was added in OpenSSL 3.0. + +=head1 COPYRIGHT + +Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved. + +Licensed under the Apache License 2.0 (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L<https://www.openssl.org/source/license.html>. + +=cut + |