Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.SaveToBufferPKCS7

TElCustomCertStorage     See also     


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


Use this method in derived classes to save certificates contained in storage to buffer in PKCS7 format.

Declaration

[C#]
    bool SaveToBufferPKCS7(ref byte[] Buffer, ref int Size);

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

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

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

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

[Java]
    boolean saveToBufferPKCS7(byte[] Buffer, TSBInteger Size);

Parameters

  • Buffer - Buffer with PKCS7 data
  • Size - Size of Buffer in bytes

Return value

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

PKCS7 Error codes

Description

    Use this method in derived classes to save currently stored certificates in PKCS7 format.

See also:     LoadFromBufferPKCS7     LoadFromStreamPKCS7     SaveToStreamPKCS7    

Discuss this help topic in SecureBlackbox Forum