summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/ts/ts_lib.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2015-09-10 14:28:17 +0000
committerkrw <krw@openbsd.org>2015-09-10 14:28:17 +0000
commit069b6aac1fa48713c421165e8a4b6d86686a91a7 (patch)
tree8aeebfbb8e78c44e0425aca0a36c2805cf0c5cca /lib/libcrypto/ts/ts_lib.c
parentmlink tls_handshake; (diff)
downloadwireguard-openbsd-069b6aac1fa48713c421165e8a4b6d86686a91a7.tar.xz
wireguard-openbsd-069b6aac1fa48713c421165e8a4b6d86686a91a7.zip
Call readgptlabel() from readdoslabel() instead of MD readdisklabel().
Call it if and only if there is an MBR on sector 0 that contains 1 and only 1 partition; that partition is an EFI partition; and it covers the entire disk or as much of the disk as can be covered in an MBR partition. Be paranoid about restoring any possible tweaks to the label being built in the case that readgptlabel() fails, and in that case return to the readdoslabel() code. ok deraadt@
Diffstat (limited to 'lib/libcrypto/ts/ts_lib.c')
0 files changed, 0 insertions, 0 deletions