client/SecretStore.class.php
//deletes entry $id protected by $password
deletes entry $id protected by $password
deletes entry $id protected by $password
public function delete($id, $password)
	{
		$message=pack("cc", self::$method_del, strlen($id)).$this->encrypt($id).pack("c", strlen($password)).$this->encrypt($password);
		foreach($this->sources as $source => $connection)
		{
			if(!self::write($connection, $message)){
				$this->code=251;
				throw new Exception("Connection to $source failed while writing");
			}
			if(($str=self::read($connection, 1))===false){
				$this->code=250;
				throw new Exception("Connection to $source failed while reading");
			}
			if(($this->code=self::getByte($str))!==0)
				throw new Exception("Could not delete resource $id on $source: ".$this->getLastErrorMessage());
		}
	}
public function delete ( $ id , $ password ) { $ message = pack ( " cc " , self :: $ method_del , strlen ( $ id ) ) . $ this -> encrypt ( $ id ) . pack ( " c " , strlen ( $ password ) ) . $ this -> encrypt ( $ password ) ; foreach ( $ this -> sources as $ source => $ connection ) { if ( ! self :: write ( $ connection , $ message ) ) { $ this -> code = 251 ; throw new Exception ( " Connection to  $ source  failed while writing " ) ; } if ( ( $ str = self :: read ( $ connection , 1 ) ) === false ) { $ this -> code = 250 ; throw new Exception ( " Connection to  $ source  failed while reading " ) ; } if ( ( $ this -> code = self :: getByte ( $ str ) ) !== 0 ) throw new Exception ( " Could not delete resource  $ id  on  $ source :  " . $ this -> getLastErrorMessage ( ) ) ; } }
deletes entry $id protected by $password
deletes entry $id protected by $password
//construct message //send request //check response code