ossl_ends_with_dirsep.pod 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =pod
  2. =head1 NAME
  3. ossl_ends_with_dirsep, ossl_is_absolute_path
  4. - internal functions to work with paths
  5. =head1 SYNOPSIS
  6. #include "internal/cryptlib.h"
  7. int ossl_ends_with_dirsep(const char *path);
  8. int ossl_is_absolute_path(const char *path);
  9. =head1 DESCRIPTION
  10. ossl_ends_with_dirsep() detects whether the I<path> ends with a directory
  11. separator in a platform agnostic way.
  12. ossl_is_absolute_path() detects whether the I<path> is absolute path in
  13. a platform agnostic way.
  14. =head1 RETURN VALUES
  15. ossl_ends_with_dirsep() returns 1 if the I<path> ends with a directory
  16. separator, 0 otherwise.
  17. ossl_is_absolute_path() returns 1 if the I<path> is absolute, 0 otherwise.
  18. =head1 HISTORY
  19. The functions described here were added in OpenSSL 3.0.
  20. =head1 COPYRIGHT
  21. Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
  22. Licensed under the Apache License 2.0 (the "License"). You may not use
  23. this file except in compliance with the License. You can obtain a copy
  24. in the file LICENSE in the source distribution or at
  25. L<https://www.openssl.org/source/license.html>.
  26. =cut