# Copyright (c) 2024 Yuki Kimoto
# MIT License

class Net::SSLeay::X509_CRL : pointer {
  version_from Net::SSLeay;
  allow Net::SSLeay::PEM;
  
  use Net::SSLeay::Error;
  use Net::SSLeay::X509_REVOKED;
  
  use Fn;
  
  # Class Methods
  native static method new : Net::SSLeay::X509_CRL ();
  
  private static method new_with_pointer : Net::SSLeay::X509_CRL ($pointer : Address, $options : object[] = undef) {
    
    my $self = new Net::SSLeay::X509_CRL;
    
    Fn->set_pointer($self, $pointer);
    
    return $self;
  }
  
  # Instance Methods
  native method get_REVOKED : Net::SSLeay::X509_REVOKED[] ();
  
  native method DESTROY : void ();
  
}