Discuss this help topic in SecureBlackbox Forum

TElCertificateRevocationListEx.SaveToBufferPEM

TElCertificateRevocationListEx     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Saves the certificate revocation list to the memory buffer in PEM format.

Declaration

[C#/Java]
    int SaveToBufferPEM(out byte[] Buffer, TElX509Certificate Certificate, string Passphrase);
    int SaveToBufferPEM(ref byte[] Buffer, ref int Size, TElX509Certificate Certificate, string Passphrase);
    int SaveToBufferPEM(out byte[] Buffer, string Passphrase);
    int SaveToBufferPEM(ref byte[] Buffer, ref int Size, string Passphrase);

[VB.NET]
    Function SaveToBufferPEM(Out Buffer As Byte(), ByVal Certificate As TElX509Certificate, ByVal Passphrase As String) As Integer
    Function SaveToBufferPEM(ByRef Buffer As Byte(), ByRef Size As Integer, ByVal Certificate As TElX509Certificate, ByVal Passphrase As String) As Integer
    Function SaveToBufferPEM(Out Buffer As Byte(), ByVal Passphrase As String) As Integer
    Function SaveToBufferPEM(ByRef Buffer As Byte(), ByRef Size As Integer, ByVal Passphrase As String) As Integer

[Pascal]
    function SaveToBufferPEM(out Buffer : ByteArray; Certificate : TElX509Certificate; const Passphrase : string = '') : integer;
    function SaveToBufferPEM(Buffer: pointer; var Size: integer; Certificate: TElX509Certificate; const Passphrase: string = ''): integer;

[C++]
    int32_t SaveToBufferPEM(void * Buffer, int32_t &Size, TElX509Certificate &Certificate, const std::string &Passphrase);
    int32_t SaveToBufferPEM(void * Buffer, int32_t &Size, TElX509Certificate *Certificate, const std::string &Passphrase);
    int32_t SaveToBufferPEM(std::vector<uint8_t> &Buffer, TElX509Certificate &Certificate, const std::string &Passphrase);
    int32_t SaveToBufferPEM(std::vector<uint8_t> &Buffer, TElX509Certificate *Certificate, const std::string &Passphrase);

[PHP]
    integer SaveToBufferPEM(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size, TElX509Certificate $Certificate, string $Passphrase)
    integer SaveToBufferPEM(array of byte|string &$Buffer, TElX509Certificate $Certificate, string $Passphrase)
    integer SaveToBufferPEM(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size, string $Passphrase)

Parameters

  • Buffer - the buffer to which the CRL is saved.
  • Size - the size of the buffer to which the data is saved. When the method returns, Size parameter contains the size of the data that were saved, or, if the buffer was too small, the size of the buffer enough to hold the data.
  • PassPhrase - the pass phrase to encrypt the CRL. If the CRL shouldn't be encrypted, set this parameter to empty string.
  • Certificate - certificate to sign the CRL

Return value

    0 if certificates were successfully saved.
    SB_CRL error code otherwise.

CRL Error codes


Description

    This method saves the CRL to the provided memory location of the given size. If the buffer is too small (or empty), Size parameter is set to the size which will be enough to hold the whole data. The CRL is saved in PEM format.

See also:     SaveToBuffer     SaveToStreamPEM    

Discuss this help topic in SecureBlackbox Forum