summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ec6b04b)
This got missed with the changes to get_keyid.
char *primary = NULL;
char *safeuid = NULL;
int i;
char *primary = NULL;
char *safeuid = NULL;
int i;
if (!intrans) {
result = PQexec(dbconn, "BEGIN");
PQclear(result);
}
if (!intrans) {
result = PQexec(dbconn, "BEGIN");
PQclear(result);
}
+ get_keyid(publickey, &keyid);
+
/*
* Delete the key if we already have it.
*
/*
* Delete the key if we already have it.
*
* it definitely needs updated.
*/
if (update) {
* it definitely needs updated.
*/
if (update) {
- pg_delete_key(get_keyid(publickey), true);
+ pg_delete_key(keyid, true);
}
next = publickey->next;
}
next = publickey->next;
snprintf(statement, 1023,
"INSERT INTO onak_keys (keyid, keydata) VALUES "
"('%" PRIX64 "', '%d')",
snprintf(statement, 1023,
"INSERT INTO onak_keys (keyid, keydata) VALUES "
"('%" PRIX64 "', '%d')",
key_oid);
result = PQexec(dbconn, statement);
key_oid);
result = PQexec(dbconn, statement);
"INSERT INTO onak_uids "
"(keyid, uid, pri) "
"VALUES ('%" PRIX64 "', '%s', '%c')",
"INSERT INTO onak_uids "
"(keyid, uid, pri) "
"VALUES ('%" PRIX64 "', '%s', '%c')",
safeuid,
(uids[i] == primary) ? 't' : 'f');
result = PQexec(dbconn, statement);
safeuid,
(uids[i] == primary) ? 't' : 'f');
result = PQexec(dbconn, statement);
"INSERT INTO onak_sigs (signer, signee) "
"VALUES ('%" PRIX64 "', '%" PRIX64 "')",
sig_keyid(packets->packet),
"INSERT INTO onak_sigs (signer, signee) "
"VALUES ('%" PRIX64 "', '%" PRIX64 "')",
sig_keyid(packets->packet),
result = PQexec(dbconn, statement);
PQclear(result);
}
result = PQexec(dbconn, statement);
PQclear(result);
}