bio.h 632 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <openssl/bio.h>
  3. #include <library/cpp/openssl/holders/holder.h>
  4. namespace NOpenSSL {
  5. class TBioMethod : public THolder<BIO_METHOD, BIO_meth_new, BIO_meth_free, int, const char*> {
  6. public:
  7. TBioMethod(
  8. int type,
  9. const char* name,
  10. int (*write)(BIO*, const char*, int),
  11. int (*read)(BIO*, char*, int),
  12. int (*puts)(BIO*, const char*),
  13. int (*gets)(BIO*, char*, int),
  14. long (*ctrl)(BIO*, int, long, void*),
  15. int (*create)(BIO*),
  16. int (*destroy)(BIO*),
  17. long (*callbackCtrl)(BIO*, int, bio_info_cb*)
  18. );
  19. };
  20. } // namespace NOpenSSL