Movatterモバイル変換


[0]ホーム

URL:


PHP 8.5.0 Alpha 2 available for testing
    gnupg_gettrustlist »
    « gnupg_geterrorinfo

    gnupg_getprotocol

    (PECL gnupg >= 0.1)

    gnupg_getprotocolReturns the currently active protocol for all operations

    Description

    gnupg_getprotocol(resource$identifier):int

    Parameters

    identifier

    The gnupg identifier, from a call tognupg_init() orgnupg.

    Return Values

    Returns the currently active protocol, which can be one ofGNUPG_PROTOCOL_OpenPGP orGNUPG_PROTOCOL_CMS.

    Examples

    Example #1 Proceduralgnupg_getprotocol() example

    <?php
    $res
    =gnupg_init();
    echo
    gnupg_getprotocol($res);
    ?>

    Example #2 OOgnupg_getprotocol() example

    <?php
    $gpg
    = newgnupg();
    echo
    $gpg->getprotocol();
    ?>

    Found A Problem?

    Learn How To Improve This PageSubmit a Pull RequestReport a Bug
    add a note

    User Contributed Notes

    There are no user contributed notes for this page.
    To Top
    and to navigate •Enter to select •Esc to close
    PressEnter without selection to search using Google

    [8]ページ先頭

    ©2009-2025 Movatter.jp