OSSL_trace_get_category_num.pod 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. =pod
  2. =head1 NAME
  3. OSSL_trace_get_category_num, OSSL_trace_get_category_name
  4. - OpenSSL tracing information functions
  5. =head1 SYNOPSIS
  6. #include <openssl/trace.h>
  7. int OSSL_trace_get_category_num(const char *name);
  8. const char *OSSL_trace_get_category_name(int num);
  9. =head1 DESCRIPTION
  10. OSSL_trace_get_category_num() gives the category number corresponding
  11. to the given C<name>.
  12. OSSL_trace_get_category_name() gives the category name corresponding
  13. to the given C<num>.
  14. =head1 RETURN VALUES
  15. OSSL_trace_get_category_num() returns the category number if the given
  16. C<name> is a recognised category name, otherwise -1.
  17. OSSL_trace_get_category_name() returns the category name if the given
  18. C<num> is a recognised category number, otherwise NULL.
  19. =head1 HISTORY
  20. The OpenSSL Tracing API was added ino OpenSSL 3.0.0.
  21. =head1 COPYRIGHT
  22. Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
  23. Licensed under the Apache License 2.0 (the "License"). You may not use
  24. this file except in compliance with the License. You can obtain a copy
  25. in the file LICENSE in the source distribution or at
  26. L<https://www.openssl.org/source/license.html>.
  27. =cut