Discuss this help topic in SecureBlackbox Forum

TElCertificateRevocationList.SaveToBufferPEM

TElCertificateRevocationList     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, string Passphrase);
    int SaveToBufferPEM(ref byte[] Buffer, ref int Size, string Passphrase);

[VB.NET]
    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(Buffer: pointer; var Size: integer; const Passphrase: string = ''): integer;

[C++]
    int32_t SaveToBufferPEM(void * Buffer, int32_t &Size, const std::string &Passphrase);

[PHP]
    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.
  • Cert - ...

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:     LoadFromBufferPEM     SaveToBuffer    

Discuss this help topic in SecureBlackbox Forum