svn: /pear/packages/Crypt_GPG/trunk/Crypt/GPG/ SubKey.php

From: Date: Mon, 14 Mar 2011 03:41:01 +0000
Subject: svn: /pear/packages/Crypt_GPG/trunk/Crypt/GPG/ SubKey.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-61430@lists.php.net to get a copy of this message
gauthierm Mon, 14 Mar 2011 03:41:01 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=309199 Log: Add constants to SubKey for key usage types. Changed paths: U pear/packages/Crypt_GPG/trunk/Crypt/GPG/SubKey.php Modified: pear/packages/Crypt_GPG/trunk/Crypt/GPG/SubKey.php =================================================================== --- pear/packages/Crypt_GPG/trunk/Crypt/GPG/SubKey.php 2011-03-14 00:08:29 UTC (rev 309198) +++ pear/packages/Crypt_GPG/trunk/Crypt/GPG/SubKey.php 2011-03-14 03:41:01 UTC (rev 309199) @@ -53,7 +53,7 @@ */ class Crypt_GPG_SubKey { - // {{{ class constants + // {{{ algorithm class constants /** * RSA encryption algorithm. @@ -77,6 +77,29 @@ const ALGORITHM_ELGAMAL_ENC_SGN = 20; // }}} + // {{{ usage class constants + + /** + * Key can be used to encrypt + */ + const USAGE_ENCRYPT = 1; + + /** + * Key can be used to sign + */ + const USAGE_SIGN = 2; + + /** + * Key can be used to certify other keys + */ + const USAGE_CERTIFY = 4; + + /** + * Key can be used for authentication + */ + const USAGE_AUTHENTICATION = 8; + + // }}} // {{{ class properties /**

« previous php.pear.cvs (#61430) next »