ENGINE-209: functions properly in (last run at it was dumb) - time to test ENGINE-209
authorKrista Bennett <krista@pep-project.org>
Mon, 22 May 2017 09:57:18 +0200
branchENGINE-209
changeset 1805f8990716f387
parent 1800 73f28d6a45ac
child 1806 e65e979be062
ENGINE-209: functions properly in (last run at it was dumb) - time to test
src/pEpEngine.c
src/pEpEngine.h
     1.1 --- a/src/pEpEngine.c	Fri May 19 14:56:44 2017 +0200
     1.2 +++ b/src/pEpEngine.c	Mon May 22 09:57:18 2017 +0200
     1.3 @@ -1315,8 +1315,7 @@
     1.4          return PEP_ILLEGAL_VALUE;
     1.5          
     1.6      sqlite3_reset(session->update_trust_for_fpr);
     1.7 -    sqlite3_bind_int(session->update_trust_for_fpr, 1, comm_type, -1,
     1.8 -            SQLITE_STATIC);
     1.9 +    sqlite3_bind_int(session->update_trust_for_fpr, 1, comm_type);
    1.10      sqlite3_bind_text(session->update_trust_for_fpr, 2, fpr, -1,
    1.11              SQLITE_STATIC);
    1.12      int result = sqlite3_step(session->update_trust_for_fpr);
     2.1 --- a/src/pEpEngine.h	Fri May 19 14:56:44 2017 +0200
     2.2 +++ b/src/pEpEngine.h	Mon May 22 09:57:18 2017 +0200
     2.3 @@ -835,6 +835,10 @@
     2.4                              const char* user_id,
     2.5                              const char* fpr, 
     2.6                              PEP_comm_type comm_type);
     2.7 +                            
     2.8 +PEP_STATUS update_trust_for_fpr(PEP_SESSION session, 
     2.9 +                                const char* fpr, 
    2.10 +                                PEP_comm_type comm_type);
    2.11  
    2.12  // least_trust() - get the least known trust level for a key in the database
    2.13  //