From 28e032d29013203bd32917ee495cc202f0bb6b4e Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Thu, 28 Sep 2017 16:46:42 +0200 Subject: public_key: verify ip (both v4 and v6) --- lib/public_key/doc/src/public_key.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lib/public_key/doc/src') diff --git a/lib/public_key/doc/src/public_key.xml b/lib/public_key/doc/src/public_key.xml index fcf37a7a4d..3040f2db0d 100644 --- a/lib/public_key/doc/src/public_key.xml +++ b/lib/public_key/doc/src/public_key.xml @@ -871,12 +871,13 @@ fun(#'DistributionPoint'{}, #'CertificateList'{}, Cert = der_encoded() | #'OTPCertificate'{} ReferenceIDs = [ RefID ] - RefID = {IdType,string()} - IdType = dns_id | srv_id | uri_id + RefID = {dns_id,string()} | {srv_id,string()} | {uri_id,string()} | {ip,inet:ip_address()|string()} | {OtherRefID,term()}} + OtherRefID = atom() Opts = [ PvhOpt() ] PvhOpt = [MatchOpt | FailCallBackOpt | FqdnExtractOpt] - MatchOpt = {fun(RefId | FQDN::string(), PresentedID) -> boolean() | default} - PresentedID = {dNSName,string()} | {uniformResourceIdentifier,string()} + MatchOpt = {match_fun, fun(RefId | FQDN::string(), PresentedID) -> boolean() | default} + PresentedID = {dNSName,string()} | {uniformResourceIdentifier,string() | {iPAddress,list(byte())} | {OtherPresId,term()}} + OtherPresID = atom() FailCallBackOpt = {fail_callback, fun(#'OTPCertificate'{}) -> boolean()} FqdnExtractOpt = {fqdn_fun, fun(RefID) -> FQDN::string() | default | undefined} @@ -893,6 +894,11 @@ fun(#'DistributionPoint'{}, #'CertificateList'{}, code examples describes this function more detailed.

+

The {OtherRefId,term()} is defined by the user and is passed to the match_fun, if defined. + If that term is a binary, it will be converted to a string. +

+

The ip takes a 4-tuple or a +

-- cgit v1.2.3 From 31a1cd146bf6d0caf1d3fe8005b7e6307710205d Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Wed, 22 Nov 2017 12:23:57 +0100 Subject: Update release notes --- lib/public_key/doc/src/notes.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'lib/public_key/doc/src') diff --git a/lib/public_key/doc/src/notes.xml b/lib/public_key/doc/src/notes.xml index 7a7c828760..a4c0194328 100644 --- a/lib/public_key/doc/src/notes.xml +++ b/lib/public_key/doc/src/notes.xml @@ -35,6 +35,30 @@ notes.xml +
Public_Key 1.5.1 + +
Improvements and New Features + + +

+ Hostname verification: Add handling of the general name + iPAddress in certificate's subject alternative + name extension (subjAltName).

+

+ Own Id: OTP-14653

+
+ +

+ Correct key handling in pkix_test_data/1 and use a + generic example mail address instead of an existing one.

+

+ Own Id: OTP-14766

+
+
+
+ +
+
Public_Key 1.5
Fixed Bugs and Malfunctions -- cgit v1.2.3