store.h 954 B

1234567891011121314151617181920212223242526272829
  1. #include <contrib/libs/openssl/redef.h>
  2. /*
  3. * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the OpenSSL license (the "License"). You may not use
  6. * this file except in compliance with the License. You can obtain a copy
  7. * in the file LICENSE in the source distribution or at
  8. * https://www.openssl.org/source/license.html
  9. */
  10. #ifndef OSSL_CRYPTO_STORE_H
  11. # define OSSL_CRYPTO_STORE_H
  12. # include <openssl/bio.h>
  13. # include <openssl/store.h>
  14. # include <openssl/ui.h>
  15. /*
  16. * Two functions to read PEM data off an already opened BIO. To be used
  17. * instead of OSSLSTORE_open() and OSSLSTORE_close(). Everything is done
  18. * as usual with OSSLSTORE_load() and OSSLSTORE_eof().
  19. */
  20. OSSL_STORE_CTX *ossl_store_attach_pem_bio(BIO *bp, const UI_METHOD *ui_method,
  21. void *ui_data);
  22. int ossl_store_detach_pem_bio(OSSL_STORE_CTX *ctx);
  23. void ossl_store_cleanup_int(void);
  24. #endif