roundcubemail/plugins/enigma/lib/enigma_key.php
function get_type()
    {
        if ($this->subkeys[0]->has_private)
            return enigma_key::TYPE_KEYPAIR;
        else if (!empty($this->subkeys[0]))
            return enigma_key::TYPE_PUBLIC;

        return enigma_key::TYPE_UNKNOWN;
    }
function get_type()
    {
        if ($this->subkeys[0]->has_private)
            return enigma_key::TYPE_KEYPAIR;
        else if (!empty($this->subkeys[0]))
            return enigma_key::TYPE_PUBLIC;

        return enigma_key::TYPE_UNKNOWN;
    }
function get_type ( ) { if ( $ this -> subkeys [ 0 ] -> has_private ) return enigma_key :: TYPE_KEYPAIR ; else if ( ! empty ( $ this -> subkeys [ 0 ] ) ) return enigma_key :: TYPE_PUBLIC ; return enigma_key :: TYPE_UNKNOWN ; }
Returns key type
Returns key type