store_int.h 945 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2017 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 HEADER_STORE_INT_H
  10. # define HEADER_STORE_INT_H
  11. # include <openssl/bio.h>
  12. # include <openssl/store.h>
  13. # include <openssl/ui.h>
  14. # ifdef __cplusplus
  15. extern "C" {
  16. # endif
  17. /*
  18. * Two functions to read PEM data off an already opened BIO. To be used
  19. * instead of OSSLSTORE_open() and OSSLSTORE_close(). Everything is done
  20. * as usual with OSSLSTORE_load() and OSSLSTORE_eof().
  21. */
  22. OSSL_STORE_CTX *ossl_store_attach_pem_bio(BIO *bp, const UI_METHOD *ui_method,
  23. void *ui_data);
  24. int ossl_store_detach_pem_bio(OSSL_STORE_CTX *ctx);
  25. # ifdef __cplusplus
  26. }
  27. # endif
  28. #endif