Discuss this help topic in SecureBlackbox Forum

TElPGPSignature.AddExtension

TElPGPSignature     See also     


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


Adds an extension of the specified type.

Declaration

[C#]
    int AddExtension(TSBPGPSignatureExtension ExtType, bool Hashed, bool Critical);

[VB.NET]
    Function AddExtension(ByVal ExtType As TSBPGPSignatureExtension, ByVal Hashed As Boolean, ByVal Critical As Boolean) As Integer

[Pascal]
    function AddExtension(ExtType : TSBPGPSignatureExtension; Hashed : boolean = true; Critical : boolean = false) : integer;

[C++]
    int32_t AddExtension(TSBPGPSignatureExtension ExtType, bool Hashed, bool Critical);

[PHP]
    integer AddExtension(integer $ExtType, bool $Hashed, bool $Critical)

[Java]
    int addExtension(TSBPGPSignatureExtension ExtType, boolean Hashed, boolean Critical);

Parameters

  • ExtType - type of the extension to be deleted.
  • Hashed - shows if this extension will be hashed during signature creating. Default value is True
  • Critical - if True extension will be marked as critical. Default value is False.

Possible types

Return value

    Returns the index of the newly added extension.

Description

    Use this method to add new extension.

See also:     ClearExtensions     GetExtensionByType     GetExtensionCount     RemoveExtension    

Discuss this help topic in SecureBlackbox Forum