x509_vfy.h 753 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <openssl/x509_vfy.h>
  3. #include <library/cpp/openssl/holders/holder.h>
  4. namespace NOpenSSL {
  5. class TX509LookupMethod : public THolder<X509_LOOKUP_METHOD, X509_LOOKUP_meth_new, X509_LOOKUP_meth_free, const char*> {
  6. public:
  7. TX509LookupMethod(
  8. const char* name,
  9. int (*newItem) (X509_LOOKUP *ctx),
  10. void (*free) (X509_LOOKUP *ctx),
  11. int (*init) (X509_LOOKUP *ctx),
  12. int (*shutdown) (X509_LOOKUP *ctx),
  13. X509_LOOKUP_ctrl_fn ctrl,
  14. X509_LOOKUP_get_by_subject_fn getBySubject,
  15. X509_LOOKUP_get_by_issuer_serial_fn getByIssuerSerial,
  16. X509_LOOKUP_get_by_fingerprint_fn getByFingerprint,
  17. X509_LOOKUP_get_by_alias_fn getByAlias
  18. );
  19. };
  20. } // namespace NOpenSSL