summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2018-02-10 04:57:35 +0000
committerjsing <jsing@openbsd.org>2018-02-10 04:57:35 +0000
commit2974e8f102cc29542387556e983b4bca35ff8020 (patch)
tree8411770c319450ce8836f1a20d3405cf28efa92f /lib/libc
parentTidy/standardise some code. (diff)
downloadwireguard-openbsd-2974e8f102cc29542387556e983b4bca35ff8020.tar.xz
wireguard-openbsd-2974e8f102cc29542387556e983b4bca35ff8020.zip
Move the keypair pubkey hash handling code to during config.
The keypair pubkey hash was being generated and set in the keypair when the TLS context was being configured. This code should not be messing around with the keypair contents, since it is part of the config (and not the context). Instead, generate the pubkey hash and store it in the keypair when the certificate is configured. This means that we are guaranteed to have the pubkey hash and as a side benefit, we identify bad certificate content when it is provided, instead of during the context configuration. ok beck@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions