]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Document that provider name can be a full path
authorTomas Mraz <tomas@openssl.org>
Wed, 9 Jun 2021 15:04:12 +0000 (17:04 +0200)
committerPauli <pauli@openssl.org>
Thu, 10 Jun 2021 22:52:26 +0000 (08:52 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15680)

doc/man1/openssl.pod
doc/man3/OSSL_PROVIDER.pod

index 3b47ae97298006f7c998cb451666e92ab766fcf2..b6f4029a678de75d24b0bb6682cdf960d96bc903 100644 (file)
@@ -651,7 +651,12 @@ the PKCS#11 URI as defined in RFC 7512 should be possible to use directly:
 
 =item B<-provider> I<name>
 
-Load and initialize the provider identified by I<name>.
+Load and initialize the provider identified by I<name>. The I<name>
+can be also a path to the provider module. In that case the provider name
+will be the specified path and not just the provider module name.
+Interpretation of relative paths is platform specific. The configured
+"MODULESDIR" path, B<OPENSSL_MODULES> environment variable, or the path
+specified by B<-provider-path> is prepended to relative paths.
 See L<provider(7)> for a more detailed description.
 
 =item B<-provider-path> I<path>
index 2b014c467177eacd75d6f16890cbbc8fd5e5e866..bc4cc1641eaec8feefb8045f9172c9596c86159d 100644 (file)
@@ -81,7 +81,12 @@ OSSL_PROVIDER_load() loads and initializes a provider.
 This may simply initialize a provider that was previously added with
 OSSL_PROVIDER_add_builtin() and run its given initialization function,
 or load a provider module with the given name and run its provider
-entry point, C<OSSL_provider_init>.
+entry point, C<OSSL_provider_init>. The I<name> can be a path
+to a provider module, in that case the provider name as returned
+by OSSL_PROVIDER_get0_name() will be the path. Interpretation
+of relative paths is platform dependent and they are relative
+to the configured "MODULESDIR" directory or the path set in
+the environment variable OPENSSL_MODULES if set.
 
 OSSL_PROVIDER_try_load() functions like OSSL_PROVIDER_load(), except that
 it does not disable the fallback providers if the provider cannot be