Discuss this help topic in SecureBlackbox Forum

TElPGPSignature.AddExtension

TElPGPSignature     See also     


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


Adds an extension of the specified type.

Declaration

[C#/Java]
    int AddExtension(TSBPGPSignatureExtension ExtType, bool Hashed /* = true */, bool Critical /* = false */);

[VB.NET]
    Function AddExtension(ByVal ExtType As TSBPGPSignatureExtension, ByVal Hashed As Boolean = True, ByVal Critical As Boolean = False) 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)

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