diff options
author | Pauli <paul.dale@oracle.com> | 2020-09-07 11:58:03 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-09-12 16:46:20 +1000 |
commit | eab7b4240dc87e27d8b12b5af23d3cf20dd06f55 (patch) | |
tree | 6cf21b1522dd15ab0b961d5c4a0250d2bc354b09 /providers/prov_running.c | |
parent | 5e8cd0a4f48f06df2542e7c74dcbb4310bce7c4c (diff) |
provider: add an 'is_running' call to all providers.
It can be accessed (read only) via the status parameter.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12801)
Diffstat (limited to 'providers/prov_running.c')
-rw-r--r-- | providers/prov_running.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/providers/prov_running.c b/providers/prov_running.c new file mode 100644 index 0000000000..a65e4978d0 --- /dev/null +++ b/providers/prov_running.c @@ -0,0 +1,16 @@ +/* + * Copyright 2020 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 + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +#include <openssl/e_os2.h> +#include "prov/providercommon.h" + +int ossl_prov_is_running(void) +{ + return 1; +} |