Discuss this help topic in SecureBlackbox Forum

TElCertificateRevocationList.SaveToBuffer

TElCertificateRevocationList     See also     


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


Saves the CRL to memory buffer.

Declaration

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

[VB.NET]
    Function SaveToBuffer(Out Buffer As Byte()) As Integer
    Function SaveToBuffer(ByRef Buffer As Byte(), ByRef Size As Integer) 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)

[Java]
    int saveToBuffer(byte[] Buffer, int[] Size);
    int saveToBuffer(byte[][] Buffer);
    int saveToBuffer(byte[] Buffer, TSBInteger 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