update_pairing
error = update_pairing(&ipsapp, &sq, ksi, diagnostic);
static int update_pairing(ipsap_t *, ipsa_query_t *, keysock_in_t *, int *);