roundcubemail/plugins/enigma/lib/enigma_driver_gnupg.php
public function list_keys($pattern = '')
    {
        try {
            $keys = $this->gpg->getKeys($pattern);
            $result = array();

            foreach ($keys as $idx => $key) {
                $result[] = $this->parse_key($key);
                unset($keys[$idx]);
            }

            return $result;
        }
        catch (Exception $e) {
            return $this->get_error_from_exception($e);
        }
    }
public function list_keys($pattern = '')
    {
        try {
            $keys = $this->gpg->getKeys($pattern);
            $result = array();

            foreach ($keys as $idx => $key) {
                $result[] = $this->parse_key($key);
                unset($keys[$idx]);
            }

            return $result;
        }
        catch (Exception $e) {
            return $this->get_error_from_exception($e);
        }
    }
public function list_keys ( $ pattern = '' ) { try { $ keys = $ this -> gpg -> getKeys ( $ pattern ) ; $ result = array ( ) ; foreach ( $ keys as $ idx => $ key ) { $ result [ ] = $ this -> parse_key ( $ key ) ; unset ( $ keys [ $ idx ] ) ; } return $ result ; } catch ( Exception $ e ) { return $ this -> get_error_from_exception ( $ e ) ; } }
Keys listing.

@param string Optional pattern for key ID, user ID or fingerprint

@return mixed Array of enigma_key objects or enigma_error
Keys listing .