store.h 914 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (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. #ifndef OSSL_CRYPTO_STORE_H
  10. # define OSSL_CRYPTO_STORE_H
  11. # include <openssl/bio.h>
  12. # include <openssl/store.h>
  13. # include <openssl/ui.h>
  14. /*
  15. * Two functions to read PEM data off an already opened BIO. To be used
  16. * instead of OSSLSTORE_open() and OSSLSTORE_close(). Everything is done
  17. * as usual with OSSLSTORE_load() and OSSLSTORE_eof().
  18. */
  19. OSSL_STORE_CTX *ossl_store_attach_pem_bio(BIO *bp, const UI_METHOD *ui_method,
  20. void *ui_data);
  21. int ossl_store_detach_pem_bio(OSSL_STORE_CTX *ctx);
  22. void ossl_store_cleanup_int(void);
  23. #endif