mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
2c6bb03cfb
commit
a2434ccabd
2 changed files with 89 additions and 46 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue