aboutsummaryrefslogtreecommitdiffstats
path: root/g10/call-dirmngr.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-12-15 07:55:36 +0000
committerWerner Koch <[email protected]>2020-12-15 12:36:19 +0000
commita2434ccabdd1956876b44e05e07c3c3630c50f8f (patch)
tree219da778f6b652d44611a977750943e9af03c4ed /g10/call-dirmngr.c
parentdirmngr: Remove superfluous attribute from the LDAP schema. (diff)
downloadgnupg-a2434ccabdd1956876b44e05e07c3c3630c50f8f.tar.gz
gnupg-a2434ccabdd1956876b44e05e07c3c3630c50f8f.zip
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/call-dirmngr.c3
1 files changed, 3 insertions, 0 deletions
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;