#NEWLINE# def handle_status( self , key , value ) : #NEWLINE# #INDENT# if ( key in ( 'ENC_TO' , 'USERID_HINT' , 'GOODMDC' , 'END_DECRYPTION' , 'BEGIN_SIGNING' , 'NO_SECKEY' , 'ERROR' , 'NODATA' , 'CARDCTRL' , 'BADMDC' , 'SC_OP_FAILURE' , 'SC_OP_SUCCESS' ) ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key in ( 'NEED_PASSPHRASE' , 'BAD_PASSPHRASE' , 'GOOD_PASSPHRASE' , 'MISSING_PASSPHRASE' , 'DECRYPTION_FAILED' , 'KEY_NOT_CREATED' ) ) : #NEWLINE# #INDENT# self . status = key . replace ( '_' , ' ' ) . lower ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'NEED_PASSPHRASE_SYM' ) : #NEWLINE# #INDENT# self . status = 'need symmetric passphrase' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'BEGIN_DECRYPTION' ) : #NEWLINE# #INDENT# self . status = 'decryption incomplete' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'BEGIN_ENCRYPTION' ) : #NEWLINE# #INDENT# self . status = 'encryption incomplete' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'DECRYPTION_OKAY' ) : #NEWLINE# #INDENT# self . status = 'decryption ok' #NEWLINE# self . ok = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'END_ENCRYPTION' ) : #NEWLINE# #INDENT# self . status = 'encryption ok' #NEWLINE# self . ok = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'INV_RECP' ) : #NEWLINE# #INDENT# self . status = 'invalid recipient' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'KEYEXPIRED' ) : #NEWLINE# #INDENT# self . status = 'key expired' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'SIG_CREATED' ) : #NEWLINE# #INDENT# self . status = 'sig created' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key == 'SIGEXPIRED' ) : #NEWLINE# #INDENT# self . status = 'sig expired' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# Verify . handle_status ( self , key , value )