X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fman7%2Fproperty.pod;h=90368b1f8d0254de5a5dbd6fc2b920fbf1cb0e92;hp=bc45afb27920d23231cbb3d508c4edbebd15dac8;hb=HEAD;hpb=745fc918e7eeb86b2ac541325a8ae5c6e374ee56 diff --git a/doc/man7/property.pod b/doc/man7/property.pod index bc45afb279..eb0f6b176c 100644 --- a/doc/man7/property.pod +++ b/doc/man7/property.pod @@ -41,10 +41,11 @@ property names like A I is a I pair. A I is a sequence of comma separated properties. -There can be any number of properties in a definition. -For example: "" defines a null property definition; "my.foo=bar" -defines a property named I which has a string value I and -"iteration.count=3" defines a property named I which +There can be any number of properties in a definition, however each name must +be unique. +For example: "" defines an empty property definition (i.e., no restriction); +"my.foo=bar" defines a property named I which has a string value I +and "iteration.count=3" defines a property named I which has a numeric value of I<3>. The full syntax for property definitions appears below. @@ -60,7 +61,7 @@ provider defines I for all of their algorithms. =head2 Queries A I is a single conditional test. -For example, "fips=yes", "provider!=default" or "?iteration.count!=3". +For example, "fips=yes", "provider!=default" or "?iteration.count=3". The first two represent mandatory clauses, such clauses B match for any algorithm to even be under consideration. The third clause represents an optional clause. @@ -68,6 +69,7 @@ Matching such clauses is not a requirement, but any additional optional match counts in favor of the algorithm. More details about that in the B section. A I is a sequence of comma separated property query clauses. +It is an error if a property name appears in more than one query clause. The full syntax for property queries appears below, but the available syntactic features are: @@ -144,7 +146,7 @@ setting. The lexical syntax in EBNF is given by: - Definition ::= PropertyName ( '=' Value )? + Definition ::= PropertyName ( '=' Value )? ( ',' PropertyName ( '=' Value )? )* Query ::= PropertyQuery ( ',' PropertyQuery )* PropertyQuery ::= '-' PropertyName @@ -152,9 +154,12 @@ The lexical syntax in EBNF is given by: Value ::= NumberLiteral | StringLiteral StringLiteral ::= QuotedString | UnquotedString QuotedString ::= '"' [^"]* '"' | "'" [^']* "'" - UnquotedString ::= [^{space},]+ + UnquotedString ::= [A-Za-z] [^{space},]+ NumberLiteral ::= '0' ( [0-7]* | 'x' [0-9A-Fa-f]+ ) | '-'? [1-9] [0-9]+ - PropertyName ::= [A-Z] [A-Z0-9_]* ( '.' [A-Z] [A-Z0-9_]* )* + PropertyName ::= [A-Za-z] [A-Za-z0-9_]* ( '.' [A-Za-z] [A-Za-z0-9_]* )* + +The flavour of EBNF being used is defined by: +L. =head1 HISTORY @@ -162,7 +167,7 @@ Properties were added in OpenSSL 3.0 =head1 COPYRIGHT -Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2019-2023 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy