x509_def.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include <stdio.h>
  10. #include "internal/cryptlib.h"
  11. #include <openssl/crypto.h>
  12. #include <openssl/x509.h>
  13. const char *X509_get_default_private_dir(void)
  14. {
  15. return X509_PRIVATE_DIR;
  16. }
  17. const char *X509_get_default_cert_area(void)
  18. {
  19. return X509_CERT_AREA;
  20. }
  21. const char *X509_get_default_cert_uri(void)
  22. {
  23. return X509_CERT_URI;
  24. }
  25. const char *X509_get_default_cert_dir(void)
  26. {
  27. return X509_CERT_DIR;
  28. }
  29. const char *X509_get_default_cert_file(void)
  30. {
  31. return X509_CERT_FILE;
  32. }
  33. const char *X509_get_default_cert_uri_env(void)
  34. {
  35. return X509_CERT_URI_EVP;
  36. }
  37. const char *X509_get_default_cert_path_env(void)
  38. {
  39. return X509_CERT_PATH_EVP;
  40. }
  41. const char *X509_get_default_cert_dir_env(void)
  42. {
  43. return X509_CERT_DIR_EVP;
  44. }
  45. const char *X509_get_default_cert_file_env(void)
  46. {
  47. return X509_CERT_FILE_EVP;
  48. }