Add stricter checking in NAME section

Require a comma between every name and a single space before the dash

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3559)
This commit is contained in:
Rich Salz 2017-05-25 14:16:26 -04:00
parent e92947d8d9
commit 2bcb232ebe
6 changed files with 9 additions and 7 deletions

View File

@ -5,8 +5,8 @@
SSL_CTX_dane_enable, SSL_CTX_dane_mtype_set, SSL_dane_enable, SSL_CTX_dane_enable, SSL_CTX_dane_mtype_set, SSL_dane_enable,
SSL_dane_tlsa_add, SSL_get0_dane_authority, SSL_get0_dane_tlsa, SSL_dane_tlsa_add, SSL_get0_dane_authority, SSL_get0_dane_tlsa,
SSL_CTX_dane_set_flags, SSL_CTX_dane_clear_flags, SSL_CTX_dane_set_flags, SSL_CTX_dane_clear_flags,
SSL_dane_set_flags, SSL_dane_clear_flags - SSL_dane_set_flags, SSL_dane_clear_flags
enable DANE TLS authentication of the remote TLS server in the local - enable DANE TLS authentication of the remote TLS server in the local
TLS client TLS client
=head1 SYNOPSIS =head1 SYNOPSIS

View File

@ -61,6 +61,8 @@ sub name_synopsis()
$tmp =~ tr/\n/ /; $tmp =~ tr/\n/ /;
print "$id trailing comma before - in NAME\n" if $tmp =~ /, *-/; print "$id trailing comma before - in NAME\n" if $tmp =~ /, *-/;
$tmp =~ s/ -.*//g; $tmp =~ s/ -.*//g;
$tmp =~ s/ */ /g;
print "$id missing comma in NAME\n" if $tmp =~ /[^,] /;
$tmp =~ s/,//g; $tmp =~ s/,//g;
my $dirname = dirname($filename); my $dirname = dirname($filename);