Commit 8a73348b authored by Matt Caswell's avatar Matt Caswell
Browse files

Add a skeleton default provider

parent df5375b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
# Note that some of these directories are filtered in Configure.  Look for
# Note that some of these directories are filtered in Configure.  Look for
# %skipdir there for further explanations.
# %skipdir there for further explanations.
SUBDIRS=crypto ssl apps test util tools fuzz engines
SUBDIRS=crypto ssl apps test util tools fuzz engines providers


LIBS=libcrypto libssl
LIBS=libcrypto libssl
INCLUDE[libcrypto]=. crypto/include include
INCLUDE[libcrypto]=. crypto/include include
+0 −4
Original line number Original line Diff line number Diff line
@@ -10,13 +10,9 @@
#include <openssl/core.h>
#include <openssl/core.h>
#include "provider_local.h"
#include "provider_local.h"


#if 0                            /* Until it exists for real */
OSSL_provider_init_fn ossl_default_provider_init;
OSSL_provider_init_fn ossl_default_provider_init;
#endif


const struct predefined_providers_st predefined_providers[] = {
const struct predefined_providers_st predefined_providers[] = {
#if 0                            /* Until it exists for real */
    { "default", ossl_default_provider_init, 1 },
    { "default", ossl_default_provider_init, 1 },
#endif
    { NULL, NULL, 0 }
    { NULL, NULL, 0 }
};
};
+41 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright 2019 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
 */

#ifndef OSSL_CORE_NAMES_H
# define OSSL_CORE_NAMES_H

# ifdef __cplusplus
extern "C" {
# endif

/*
 * Well known parameter names that Providers can define
 */

/*
 * A printable name for this provider
 * Type: OSSL_PARAM_UTF8_STRING
 */
#define OSSL_PROV_PARAM_NAME        "name"
/*
 * A version string for this provider
 * Type: OSSL_PARAM_UTF8_STRING
 */
#define OSSL_PROV_PARAM_VERSION     "version"
/*
 * A string providing provider specific build information
 * Type: OSSL_PARAM_UTF8_STRING
 */
#define OSSL_PROV_PARAM_BUILDINFO   "buildinfo"

# ifdef __cplusplus
}
# endif

#endif

providers/build.info

0 → 100644
+1 −0
Original line number Original line Diff line number Diff line
SUBDIRS=default
+3 −0
Original line number Original line Diff line number Diff line
LIBS=../../libcrypto
SOURCE[../../libcrypto]=\
        defltprov.c
Loading