EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElX509Certificate.SaveKeyToBuffer

TElX509Certificate     See also    


 

Saves the private key of the certificate to the memory buffer.

 
 

Declaration

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

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

[Pascal]
    function SaveKeyToBuffer(Buffer: Pointer; var Size: integer): boolean;

[VB6]
    Sub IElCertificateX.SaveKeyToBuffer(Buffer As Byte())

[ActiveX]
    HRESULT _stdcall IElCertificateX.SaveKeyToBuffer([in] VARIANT Buffer);

[DLL]
    __stdcall BOOL SBX509SaveKeyToBuffer(HANDLE hCert, void* Buffer, int* nSize);
 
 

Parameters

  • [DLL]hCert - handle to the TElX509Certificate object that was returned by Constructor
  • Buffer - the buffer to which the private key is saved. [ActiveX] Buffer should contain a one-dimensional zero-based safe array with elements of type unsigned char (byte).
  • Size - the size of the buffer to which the private key 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

    True on success.
    False if the buffer size is too small. In this case this method sets Size parameter is set to the size which will be enough to hold the whole data.

 
 

Description

    This method saves the private key to the provided memory location of the given size.

 
 

See also:     LoadKeyFromBuffer     LoadKeyFromStream     SaveKeyToStream     SaveKeyToBufferMS     SaveKeyToBufferNET     SaveKeyToBufferPEM     SaveKeyToBufferPVK    

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