Discuss this help topic in SecureBlackbox Forum

TElCertificateRevocationList.SaveToBuffer

TElCertificateRevocationList     See also     


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


Saves the CRL to memory buffer.

Declaration

[C#/Java]
    int SaveToBuffer(ref byte[] Buffer, ref int Size);
    int SaveToBuffer([out] ref byte[] Buffer);

[VB.NET]
    Function SaveToBuffer(ByRef Buffer As Byte(), ByRef Size As Integer) As Integer
    Function SaveToBuffer(ByRef Buffer As Byte()) As Integer

[Pascal]
    function SaveToBuffer(Buffer : pointer; var Size : integer) : integer;

[C++]
    int32_t SaveToBuffer(void * Buffer, int32_t &Size);

[PHP]
    integer SaveToBuffer(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size)

Parameters

  • Buffer - Buffer with certificate data
  • Size - Size of Buffer in bytes
  • 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 DER format.
    Use overloaded method without Certificate parameter to save only a *copy* of the loaded/generated CRL (without re-signing it).

See also:     LoadFromBuffer     SaveToBufferPEM    

Discuss this help topic in SecureBlackbox Forum