From a2434ccabdd1956876b44e05e07c3c3630c50f8f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 15 Dec 2020 08:55:36 +0100 Subject: dirmngr: Store all version 2 schema attributes. * g10/call-dirmngr.c (ks_put_inq_cb): Emit "fpr" records. * dirmngr/ks-engine-ldap.c (extract_attributes): Add args extract-state and schemav2. Add data for the new schema version. remove the legacy code to handle UIDs in the "pub" line. (ks_ldap_put): Set new attributes for NTDS use the fingerprint as CN. Signed-off-by: Werner Koch --- g10/call-dirmngr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'g10/call-dirmngr.c') diff --git a/g10/call-dirmngr.c b/g10/call-dirmngr.c index 1a4d896c6..17f5fdcf3 100644 --- a/g10/call-dirmngr.c +++ b/g10/call-dirmngr.c @@ -931,6 +931,7 @@ ks_put_inq_cb (void *opaque, const char *line) { kbnode_t node; estream_t fp; + char hexfpr[2*MAX_FINGERPRINT_LEN+1]; /* Parse the keyblock and send info lines back to the server. */ fp = es_fopenmem (0, "rw,samethread"); @@ -988,6 +989,8 @@ ks_put_inq_cb (void *opaque, const char *line) nbits_from_pk (pk), pk->pubkey_algo, pk->keyid, pk->timestamp, pk->expiredate, NULL); + es_fprintf (fp, "fpr:::::::::%s:\n", + hexfingerprint (pk, hexfpr, sizeof hexfpr)); } break; -- cgit v1.2.3