EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElX509Certificate.SaveToBufferSPC

TElX509Certificate     See also    


 

Saves the certificate to the memory buffer in SPC format.

 
 

Declaration

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

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

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

[VB6]
    Sub IElCertificateX6.SaveToBufferSPC(Buf As Variant)

[ActiveX]
    HRESULT _stdcall IElCertificateX6.SaveToBufferSPC([out] VARIANT * Buf);

[DLL]
    not implemented;
 
 

Parameters

  • Buffer (Buf) - the buffer to which the certificate 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.
 
 

Return value

    0 on success.
    SPC error code otherwise.

    
[ActiveX]
    buffer containing certificate in SPC format

 

SPC Error Codes

[.NET] [Pascal] Value Description
SB_X509_ERROR_BUFFER_TOO_SMALL 20487 (0x5007) Buffer is to small.
Declared in
[.NET] [Pascal]
Namespace: SBX509
Assembly: SecureBlackbox
Unit: SBX509

 
 

Description

    This method saves the certificate 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 certificate is saved in SPC (PKCS#7) format.

 
 

See also:     LoadFromBufferSPC     SaveToStreamSPC     LoadFromBuffer     SaveToStream    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation