updateing to pEpEngine
authorVolker Birk <vb@pep-project.org>
Mon, 07 Mar 2016 15:28:09 +0100
changeset 62e01f81c9c881
parent 61 d5bf2b6538f8
child 63 e6e8d27aa9a1
child 65 4736900394cb
updateing to pEpEngine
pEpCOMServerAdapter.idl
     1.1 --- a/pEpCOMServerAdapter.idl	Mon Feb 22 16:30:19 2016 +0100
     1.2 +++ b/pEpCOMServerAdapter.idl	Mon Mar 07 15:28:09 2016 +0100
     1.3 @@ -29,10 +29,25 @@
     1.4      typedef enum _pEp_STATUS {
     1.5          pEp_STATUS_OK = 0,
     1.6  
     1.7 +        pEp_INIT_CANNOT_LOAD_GPGME = 0x0110,
     1.8 +        pEp_INIT_GPGME_INIT_FAILED = 0x0111,
     1.9 +        pEp_INIT_NO_GPG_HOME = 0x0112,
    1.10 +        pEp_INIT_NETPGP_INIT_FAILED = 0x0113,
    1.11 +
    1.12 +        pEp_INIT_SQLITE3_WITHOUT_MUTEX = 0x0120,
    1.13 +        pEp_INIT_CANNOT_OPEN_DB = 0x0121,
    1.14 +        pEp_INIT_CANNOT_OPEN_SYSTEM_DB = 0x0122,
    1.15 +
    1.16          pEp_KEY_NOT_FOUND = 0x0201,
    1.17          pEp_KEY_HAS_AMBIG_NAME = 0x0202,
    1.18          pEp_GET_KEY_FAILED = 0x0203,
    1.19  
    1.20 +        pEp_CANNOT_FIND_IDENTITY = 0x0301,
    1.21 +        pEp_CANNOT_SET_PERSON = 0x0381,
    1.22 +        pEp_CANNOT_SET_PGP_KEYPAIR = 0x0382,
    1.23 +        pEp_CANNOT_SET_IDENTITY = 0x0383,
    1.24 +        pEp_CANNOT_SET_TRUST = 0x0384,
    1.25 +
    1.26          pEp_UNENCRYPTED = 0x0400,
    1.27          pEp_VERIFIED = 0x0401,
    1.28          pEp_DECRYPTED = 0x0402,
    1.29 @@ -42,7 +57,18 @@
    1.30          pEp_DECRYPT_SIGNATURE_DOES_NOT_MATCH = 0x0406,
    1.31          pEp_VERIFY_NO_KEY = 0x0407,
    1.32          pEp_VERIFIED_AND_TRUSTED = 0x0408,
    1.33 +        pEp_CANNOT_DECRYPT_UNKNOWN = 0x04ff,
    1.34  
    1.35 +        pEp_TRUSTWORD_NOT_FOUND = 0x0501,
    1.36 +
    1.37 +        pEp_CANNOT_CREATE_KEY = 0x0601,
    1.38 +        pEp_CANNOT_SEND_KEY = 0x0602,
    1.39 +
    1.40 +        pEp_PHRASE_NOT_FOUND = 0x0701,
    1.41 +
    1.42 +        pEp_COMMIT_FAILED = 0xff01,
    1.43 +
    1.44 +        pEp_CANNOT_CREATE_TEMP_FILE = -5,
    1.45          pEp_ILLEGAL_VALUE = -4,
    1.46          pEp_BUFFER_TOO_SMALL = -3,
    1.47          pEp_OUT_OF_MEMORY = -2,
    1.48 @@ -76,16 +102,23 @@
    1.49  
    1.50          pEp_ct_security_by_obscurity = 0x0a,
    1.51          pEp_ct_b0rken_crypto = 0x0b,
    1.52 -        pEp_ct_key_too_short = 0x0e,
    1.53 +        pEp_ct_key_too_short = 0x0c,
    1.54  
    1.55 -        pEp_ct_compromized = 0x0f,                  // known compromized connection
    1.56 +        pEp_ct_compromized = 0x0e,                  // known compromized connection
    1.57 +        pEp_ct_mistrusted = 0x0f,                   // known mistrusted key
    1.58  
    1.59          // range 0x10 to 0x3f: unconfirmed encryption
    1.60  
    1.61          pEp_ct_unconfirmed_encryption = 0x10,       // generic
    1.62 -        pEp_ct_OpenPGP_1024_RSA_unconfirmed = 0x11,	// RSA 1024 is weak
    1.63 -        pEp_ct_OpenPGP_unconfirmed = 0x3f,          // key at least 2048 bit RSA
    1.64 -        // or 1024 bit DSA
    1.65 +        pEp_ct_OpenPGP_weak_unconfirmed = 0x11,     // RSA 1024 is weak
    1.66 +
    1.67 +        pEp_ct_to_be_checked = 0x20,                // generic
    1.68 +        pEp_ct_SMIME_unconfirmed = 0x21,
    1.69 +        pEp_ct_CMS_unconfirmed = 0x22,
    1.70 +
    1.71 +        pEp_ct_strong_but_unconfirmed = 0x30,       // generic
    1.72 +        pEp_ct_OpenPGP_unconfirmed = 0x38,          // key at least 2048 bit RSA or EC
    1.73 +        pEp_ct_OTR_unconfirmed = 0x3a,
    1.74  
    1.75          // range 0x40 to 0x7f: unconfirmed encryption and anonymization
    1.76  
    1.77 @@ -98,8 +131,15 @@
    1.78          // range 0x90 to 0xbf: confirmed encryption
    1.79  
    1.80          pEp_ct_confirmed_encryption = 0x90,         // generic
    1.81 -        pEp_ct_OpenPGP_1024_RSA = 0x91, // RSA 1024 is weak
    1.82 -        pEp_ct_OpenPGP = 0xbf, // key at least 2048 bit RSA or 1024 bit DSA
    1.83 +        pEp_ct_OpenPGP_weak = 0x91,                 // RSA 1024 is weak
    1.84 +
    1.85 +        pEp_ct_to_be_checked_confirmed = 0xa0,      //generic
    1.86 +        pEp_ct_SMIME = 0xa1,
    1.87 +        pEp_ct_CMS = 0xa2,
    1.88 +
    1.89 +        pEp_ct_strong_encryption = 0xb0,            // generic
    1.90 +        pEp_ct_OpenPGP = 0xb8,                      // key at least 2048 bit RSA or EC
    1.91 +        pEp_ct_OTR = 0xba,
    1.92  
    1.93          // range 0xc0 to 0xff: confirmed encryption and anonymization
    1.94  
    1.95 @@ -144,6 +184,7 @@
    1.96          pEp_rating_cannot_decrypt,
    1.97          pEp_rating_have_no_key,
    1.98          pEp_rating_unencrypted,
    1.99 +        pEp_rating_unencrypted_for_some,
   1.100          pEp_rating_unreliable,
   1.101          pEp_rating_reliable,
   1.102          pEp_rating_yellow = pEp_rating_reliable,
   1.103 @@ -169,12 +210,6 @@
   1.104          pEp_dir_outgoing
   1.105      } pEp_msg_direction;
   1.106  
   1.107 -    typedef  enum _pEp_MIME_format {
   1.108 -        pEp_MIME_none = 0,                      // message is not MIME encoded
   1.109 -        pEp_MIME_fields_omitted,                // message content but no fields
   1.110 -        pEp_MIME                                // message is fully MIME encoded
   1.111 -    } pEp_MIME_format;
   1.112 -
   1.113      typedef  enum _pEp_enc_format {
   1.114          pEp_enc_none = 0,                       // message is not encrypted
   1.115          pEp_enc_pieces,                         // inline PGP + PGP extensions