changes to integrate components in CDF for OpenSSL 3.5.0 shell commands. (#61)
**NOTE:** Reverted back the dependency of ip_net components like diameter and eap from IPCRYPTO to IPSSL. Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/61 Reviewed-by: Subham Gangdeb <subham.gangdeb@neominds.in> Co-authored-by: siddhant <siddhant.singh@neominds.in> Co-committed-by: siddhant <siddhant.singh@neominds.in>
This commit is contained in:
@@ -743,7 +743,7 @@ config IPFTP_USE_TLS
|
||||
bool "Enable FTP with TLS"
|
||||
default n
|
||||
depends on COMPONENT_IPAPPL && MSP_KERNEL
|
||||
select COMPONENT_IPCRYPTO
|
||||
select COMPONENT_IPSSL
|
||||
help
|
||||
Enable FTP with TLS
|
||||
|
||||
@@ -876,7 +876,7 @@ menu "Diameter Components"
|
||||
|
||||
config IPDIAMETER_SEC_KEY_DB
|
||||
bool "Enable DIAMETER Secure key DB "
|
||||
depends on (COMPONENT_IPDIAMETERP || COMPONENT_IPDIAMETERC) && COMPONENT_IPCRYPTO
|
||||
depends on (COMPONENT_IPDIAMETERP || COMPONENT_IPDIAMETERC) && COMPONENT_IPSSL
|
||||
default n
|
||||
help
|
||||
This option enables Secure Key database support for Diameter components.
|
||||
@@ -1456,7 +1456,7 @@ config IPEAP_USE_EAP_PEAP
|
||||
bool "Enable EAP PEAP"
|
||||
default y
|
||||
depends on COMPONENT_IPEAP
|
||||
select COMPONENT_IPCRYPTO
|
||||
select COMPONENT_IPSSL
|
||||
help
|
||||
This option enables EAP_PEAP support.
|
||||
|
||||
@@ -1478,18 +1478,18 @@ config IPEAP_USE_EAP_TLS
|
||||
bool "Enable EAP TLS"
|
||||
default y
|
||||
depends on COMPONENT_IPEAP
|
||||
select COMPONENT_IPCRYPTO
|
||||
select COMPONENT_IPSSL
|
||||
help
|
||||
This option enables EAP_TLS support.
|
||||
|
||||
|
||||
comment "EAP TTLS requires COMPONENT_IPCRYPTO to be selected"
|
||||
depends on COMPONENT_IPEAP && !IPEAP_USE_EAP_TTLS && !COMPONENT_IPCRYPTO
|
||||
comment "EAP TTLS requires COMPONENT_IPSSL to be selected"
|
||||
depends on COMPONENT_IPEAP && !IPEAP_USE_EAP_TTLS && !COMPONENT_IPSSL
|
||||
|
||||
config IPEAP_USE_EAP_TTLS
|
||||
bool "Enable EAP TTLS"
|
||||
default y
|
||||
depends on COMPONENT_IPEAP && COMPONENT_IPCRYPTO
|
||||
depends on COMPONENT_IPEAP && COMPONENT_IPSSL
|
||||
help
|
||||
This option enables EAP_TTLS support.
|
||||
|
||||
@@ -1522,7 +1522,7 @@ config IPEAP_USE_EAP_COMMON_TLS
|
||||
config IPEAP_USE_EAP_COMMON_SIM
|
||||
bool
|
||||
default y if IPEAP_USE_EAP_SIM || IPEAP_USE_EAP_AKA
|
||||
select COMPONENT_IPCRYPTO
|
||||
select COMPONENT_IPSSL
|
||||
help
|
||||
This is a hidden component and will be selected if EAP SIM, and/or EAP AKA will be selected.
|
||||
#
|
||||
|
||||
@@ -141,7 +141,7 @@ Component INCLUDE_IPFTPS_TLS {
|
||||
NAME FTP Server with TLS
|
||||
SYNOPSIS FTP Server with TLS
|
||||
MODULES ipftps_tls.o
|
||||
REQUIRES INCLUDE_IPFTPS INCLUDE_IPCRYPTO
|
||||
REQUIRES INCLUDE_IPFTPS INCLUDE_IPSSL
|
||||
CFG_PARAMS FTPS_TLS FTPS_TLS_CERT_FILE FTPS_TLS_KEY_FILE FTPS_TLS_SECRECT_KEY\
|
||||
ENABLE_ADVANCE_FTPS_KEY_PRIVACY
|
||||
_CHILDREN FOLDER_FTP
|
||||
@@ -678,7 +678,7 @@ Parameter ENABLE_ADVANCE_FTPS_KEY_PRIVACY {
|
||||
Parameter FTPS_TLS_KEY_FILE {
|
||||
NAME TLS key file
|
||||
SYNOPSIS
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
TYPE char *
|
||||
DEFAULT ""
|
||||
}
|
||||
@@ -686,7 +686,7 @@ Parameter FTPS_TLS_KEY_FILE {
|
||||
Parameter FTPS_TLS_CERT_FILE {
|
||||
NAME TLS certificate file
|
||||
SYNOPSIS
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
TYPE char *
|
||||
DEFAULT ""
|
||||
}
|
||||
@@ -694,7 +694,7 @@ Parameter FTPS_TLS_CERT_FILE {
|
||||
Parameter FTPS_TLS {
|
||||
NAME Enable FTP server with TLS
|
||||
SYNOPSIS
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
TYPE char *
|
||||
DEFAULT "0"
|
||||
}
|
||||
@@ -702,7 +702,7 @@ Parameter FTPS_TLS {
|
||||
Parameter FTPS_TLS_SECRECT_KEY {
|
||||
NAME TLS secret key
|
||||
SYNOPSIS
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
TYPE char *
|
||||
DEFAULT ""
|
||||
}
|
||||
|
||||
@@ -1,24 +1,11 @@
|
||||
/* 02comp_ipnet_crypto.cdf - IPCRYPTO configuration file */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Wind River Systems, Inc.
|
||||
* Copyright (c) 2007, 2014-2019, 2021-2024 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute or otherwise make use of this software
|
||||
* may be licensed only pursuant to the terms of an applicable Wind River
|
||||
* license agreement. No license to Wind River intellectual property rights
|
||||
* is granted herein. All rights not licensed by Wind River are reserved
|
||||
* by Wind River.
|
||||
* The right to copy, distribute, modify or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01c,18sep07,spw Remove space
|
||||
01b,10sep07,mze re-added modules back into INCLUDE_IPCRYPTO
|
||||
01a.16aug07,mze removed MODULES in INCLUDE_IPCRYPTO
|
||||
*/
|
||||
|
||||
|
||||
Folder FOLDER_CRYPTO
|
||||
{
|
||||
NAME CRYPTO Components
|
||||
@@ -26,27 +13,21 @@ Folder FOLDER_CRYPTO
|
||||
DEFAULTS INCLUDE_IPCRYPTO
|
||||
}
|
||||
|
||||
Component INCLUDE_IPCRYPTO_USE_CMDS
|
||||
Folder FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
{
|
||||
NAME CRYPTO Commands
|
||||
NAME Openssl Commands
|
||||
_CHILDREN FOLDER_CRYPTO
|
||||
SYNOPSIS Crypto Commands
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
}
|
||||
|
||||
Component INCLUDE_IPCRYPTO_USE_TEST_CMDS
|
||||
{
|
||||
NAME CRYPTO Test Commands
|
||||
_CHILDREN FOLDER_CRYPTO
|
||||
SYNOPSIS Crypto Test Commands
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
}
|
||||
|
||||
Component INCLUDE_IPCRYPTO {
|
||||
Component INCLUDE_IPCRYPTO
|
||||
{
|
||||
NAME CRYPTO
|
||||
SYNOPSIS Crypto Library
|
||||
_CHILDREN FOLDER_CRYPTO
|
||||
CONFIGLETTES ipcrypto_config.c
|
||||
INIT_RTN ipcrypto_init();
|
||||
_INIT_ORDER usrToolsInit
|
||||
CFG_PARAMS OPENSSL_CONF \
|
||||
OPENSSL_HOME
|
||||
MODULES ipcrypto_aescmac.o \
|
||||
@@ -55,7 +36,288 @@ Component INCLUDE_IPCRYPTO {
|
||||
ipcrypto_crc32.o \
|
||||
ipcrypto_bubble_babble.o \
|
||||
ipcrypto_cmd_cmp.o
|
||||
}
|
||||
}
|
||||
|
||||
Component INCLUDE_VERIFY_CMD
|
||||
{
|
||||
NAME OpenSSL verify shell command
|
||||
SYNOPSIS This component includes the OpenSSL verify shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_ASN1PARSE_CMD
|
||||
{
|
||||
NAME OpenSSL asn1parse shell command
|
||||
SYNOPSIS This component includes the OpenSSL asn1parse shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_REQ_CMD
|
||||
{
|
||||
NAME OpenSSL req shell command
|
||||
SYNOPSIS This component includes the OpenSSL req shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_DGST_CMD
|
||||
{
|
||||
NAME OpenSSL dgst shell command
|
||||
SYNOPSIS This component includes the OpenSSL dgst shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_DHPARAM_CMD
|
||||
{
|
||||
NAME OpenSSL dhparam shell command
|
||||
SYNOPSIS This component includes the OpenSSL dhparam shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_ENC_CMD
|
||||
{
|
||||
NAME OpenSSL enc shell command
|
||||
SYNOPSIS This component includes the OpenSSL enc shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_PASSWD_CMD
|
||||
{
|
||||
NAME OpenSSL passwd shell command
|
||||
SYNOPSIS This component includes the OpenSSL passwd shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_CA_CMD
|
||||
{
|
||||
NAME OpenSSL ca shell command
|
||||
SYNOPSIS This component includes the OpenSSL ca shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_CRL_CMD
|
||||
{
|
||||
NAME OpenSSL crl shell command
|
||||
SYNOPSIS This component includes the OpenSSL crl shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_RSA_CMD
|
||||
{
|
||||
NAME OpenSSL rsa shell command
|
||||
SYNOPSIS This component includes the OpenSSL rsa shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_RSAUTL_CMD
|
||||
{
|
||||
NAME OpenSSL rsautl shell command
|
||||
SYNOPSIS This component includes the OpenSSL rsautl shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_GENRSA_CMD
|
||||
{
|
||||
NAME OpenSSL genrsa shell command
|
||||
SYNOPSIS This component includes the OpenSSL genrsa shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_DSA_CMD
|
||||
{
|
||||
NAME OpenSSL dsa shell command
|
||||
SYNOPSIS This component includes the OpenSSL dsa shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_DSAPARAM_CMD
|
||||
{
|
||||
NAME OpenSSL dsaparam shell command
|
||||
SYNOPSIS This component includes the OpenSSL dsaparam shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_GENDSA_CMD
|
||||
{
|
||||
NAME OpenSSL gendsa shell command
|
||||
SYNOPSIS This component includes the OpenSSL gendsa shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_X509_CMD
|
||||
{
|
||||
NAME OpenSSL x509 shell command
|
||||
SYNOPSIS This component includes the OpenSSL x509 shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_SPEED_CMD
|
||||
{
|
||||
NAME OpenSSL speed shell command
|
||||
SYNOPSIS This component includes the OpenSSL speed shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD INCLUDE_POSIX_TIMERS
|
||||
}
|
||||
|
||||
Component INCLUDE_PKCS7_CMD
|
||||
{
|
||||
NAME OpenSSL pkcs7 shell command
|
||||
SYNOPSIS This component includes the OpenSSL pkcs7 shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_CRL2PKCS7_CMD
|
||||
{
|
||||
NAME OpenSSL crl2p7 shell command
|
||||
SYNOPSIS This component includes the OpenSSL crl2p7 shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_NSEQ_CMD
|
||||
{
|
||||
NAME OpenSSL nseq shell command
|
||||
SYNOPSIS This component includes the OpenSSL nseq shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_PKCS12_CMD
|
||||
{
|
||||
NAME OpenSSL pkcs12 shell command
|
||||
SYNOPSIS This component includes the OpenSSL pkcs12 shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_PKCS8_CMD
|
||||
{
|
||||
NAME OpenSSL pkcs8 shell command
|
||||
SYNOPSIS This component includes the OpenSSL pkcs8 shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_SPKAC_CMD
|
||||
{
|
||||
NAME OpenSSL spkac shell command
|
||||
SYNOPSIS This component includes the OpenSSL spkac shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_SMIME_CMD
|
||||
{
|
||||
NAME OpenSSL smime shell command
|
||||
SYNOPSIS This component includes the OpenSSL smime shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_RAND_CMD
|
||||
{
|
||||
NAME OpenSSL rand shell command
|
||||
SYNOPSIS This component includes the OpenSSL rand shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_VERSION_CMD
|
||||
{
|
||||
NAME OpenSSL ipcrypto_ver shell command
|
||||
SYNOPSIS This component includes the OpenSSL ipcrypto_ver shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_ENGINE_CMD
|
||||
{
|
||||
NAME OpenSSL engine shell command
|
||||
SYNOPSIS This component includes the OpenSSL engine shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_OCSP_CMD
|
||||
{
|
||||
NAME OpenSSL ocsp shell command
|
||||
SYNOPSIS This component includes the OpenSSL ocsp shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_ECPARAM_CMD
|
||||
{
|
||||
NAME OpenSSL ecparam shell command
|
||||
SYNOPSIS This component includes the OpenSSL ecparam shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_EC_CMD
|
||||
{
|
||||
NAME OpenSSL ec shell command
|
||||
SYNOPSIS This component includes the OpenSSL ec shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_GENPKEY_CMD
|
||||
{
|
||||
NAME OpenSSL genpkey shell command
|
||||
SYNOPSIS This component includes the OpenSSL genpkey shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_PKEY_CMD
|
||||
{
|
||||
NAME OpenSSL pkey shell command
|
||||
SYNOPSIS This component includes the OpenSSL pkey shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_PKEYPARAM_CMD
|
||||
{
|
||||
NAME OpenSSL pkeyparam shell command
|
||||
SYNOPSIS This component includes the OpenSSL pkeyparam shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_PKEYUTL_CMD
|
||||
{
|
||||
NAME OpenSSL pkeyutl shell command
|
||||
SYNOPSIS This component includes the OpenSSL pkeyutl shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Component INCLUDE_STOREUTL_CMD
|
||||
{
|
||||
NAME OpenSSL storeutl shell command
|
||||
SYNOPSIS This component includes the OpenSSL storeutl shell command.
|
||||
_CHILDREN FOLDER_OPENSSL_3_5_0_USE_CMDS
|
||||
REQUIRES INCLUDE_IPCRYPTO INCLUDE_IPCOM_SHELL_CMD
|
||||
}
|
||||
|
||||
Parameter OPENSSL_CONF
|
||||
{
|
||||
NAME OPENSSL_CONF
|
||||
|
||||
@@ -1,226 +0,0 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* OpenSSL version 3.5.0 Configuration SOURCE FILE
|
||||
*
|
||||
* Document no: @(#) $Name:
|
||||
* $Source: /home/interpeak/CVSRoot/ipcrypto/config/ossl350_cmds.c,v $
|
||||
* $Author: ssp
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_config.h>
|
||||
#include "ipcrypto_config.h"
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_cstyle.h>
|
||||
#include <ipcom_err.h>
|
||||
#include <ipcom_sysvar.h>
|
||||
#include <ipcom_shell.h>
|
||||
#include <ipcom_os.h>
|
||||
|
||||
int s_server_main(int argc, char *argv[]);
|
||||
int s_client_main(int argc, char **argv);
|
||||
int genpkey_main(int argc, char **argv);
|
||||
int ecparam_main(int argc, char **argv);
|
||||
int ec_main(int argc, char **argv);
|
||||
int ciphers_main(int argc, char **argv);
|
||||
int pkeyparam_main(int argc, char **argv);
|
||||
int pkeyutl_main(int argc, char **argv);
|
||||
|
||||
int ipcrypto_init(void);
|
||||
const char *OpenSSL_version(int t);
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* OpenSSL version 3.5.0 commands
|
||||
*===========================================================================
|
||||
*
|
||||
*/
|
||||
|
||||
int
|
||||
ipssl_s_server(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_server_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_enc_main(int argc,char *argv[])
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return enc_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
ipssl_s_client(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_client_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_x509_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return x509_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_genrsa_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return genrsa_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_req_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return req_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_rand_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return rand_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_genpkey_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return genpkey_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_dgst_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return dgst_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_ecparam_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return ecparam_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_ec_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return ec_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_dhparam_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return dhparam_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_dsaparam_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return dsaparam_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_ciphers_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return ciphers_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_pkeyparam_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return pkeyparam_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_rsa_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return rsa_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_pkeyutl_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return pkeyutl_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_verify_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return verify_main(argc, argv);
|
||||
}
|
||||
|
||||
int
|
||||
crypto_dsa_main(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return dsa_main(argc, argv);
|
||||
}
|
||||
|
||||
void getOpenSSLVersion()
|
||||
{
|
||||
printf ("%s\n", OpenSSL_version(0));
|
||||
}
|
||||
|
||||
|
||||
void addOssl350ShellCmds (void)
|
||||
{
|
||||
ipcrypto_init();
|
||||
|
||||
ipcrypto_shell_add_cmd("enc", "enc [options]", "Encoding with Ciphers", crypto_enc_main);
|
||||
ipcrypto_shell_add_cmd("x509", "x509 [options]", "Manage certificate", crypto_x509_main);
|
||||
ipcrypto_shell_add_cmd("genrsa", "genrsa [options]", "generate rsa private key", crypto_genrsa_main);
|
||||
ipcrypto_shell_add_cmd("req", "req [options]", "certificate request generation", crypto_req_main);
|
||||
ipcrypto_shell_add_cmd("rand", "rand [options]", "generate random bytes", crypto_rand_main);
|
||||
ipcrypto_shell_add_cmd("genpkey", "genpkey [options]", "generate any private key", crypto_genpkey_main);
|
||||
ipcrypto_shell_add_cmd("dgst", "dgst [options]", "hash", crypto_dgst_main);
|
||||
ipcrypto_shell_add_cmd("ecparam", "ecparam [options]", "ecdsa key generate", crypto_ecparam_main);
|
||||
ipcrypto_shell_add_cmd("ec", "ec [options]", "ecdsa key generate", crypto_ec_main);
|
||||
ipcrypto_shell_add_cmd("dhparam", "dhparam [options]", "dh parameters", crypto_dhparam_main);
|
||||
ipcrypto_shell_add_cmd("dsaparam", "dsaparam [options]", "dsa parameters", crypto_dsaparam_main);
|
||||
ipcrypto_shell_add_cmd("ciphers", "ciphers [options]", "cipher suites", crypto_ciphers_main);
|
||||
ipcrypto_shell_add_cmd("pkeyparam", "pkeyparam [options]", "process and manage public key algorithm parameters", crypto_pkeyparam_main);
|
||||
ipcrypto_shell_add_cmd("rsa", "rsa [options]", "get public key", crypto_rsa_main);
|
||||
ipcrypto_shell_add_cmd("pkeyutl", "pkeyutl [options]", "encrypt/decrypt", crypto_pkeyutl_main);
|
||||
ipcrypto_shell_add_cmd("verify", "verify [options]", "certificate verification", crypto_verify_main);
|
||||
ipcrypto_shell_add_cmd("dsa", "dsa [options]", "dsa", crypto_dsa_main);
|
||||
|
||||
(void)ipcrypto_shell_add_cmd("s_server", "s_server", "SSL server", ipssl_s_server);
|
||||
(void)ipcrypto_shell_add_cmd("s_client", "s_client", "SSL client", ipssl_s_client);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,16 +1,11 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK CONFIGURATION HEADER FILE
|
||||
* Copyright (c) 2006-2014, 2021, 2024 Wind River Systems, Inc.
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcrypto_config.h,v $ $Revision: 1.37.10.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipcrypto/config/ipcrypto_config.h,v $
|
||||
* $Author: jli7 $ $Date: 2017-08-23 07:57:49 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* Copyright Interpeak AB 2000-2003 <www.interpeak.se>. All rights reserved.
|
||||
* Design and implementation by Roger Boden <roger@interpeak.se>
|
||||
******************************************************************************
|
||||
* The right to copy, distribute, modify or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
#ifndef IPCRYPTO_CONFIG_H
|
||||
#define IPCRYPTO_CONFIG_H
|
||||
|
||||
@@ -30,30 +25,12 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPCRYPTO_SYSLOG_PRIORITY
|
||||
*===========================================================================
|
||||
* Default syslog priority.
|
||||
*/
|
||||
#ifdef IP_DEBUG
|
||||
#define IPCRYPTO_SYSLOG_PRIORITY IPCOM_LOG_DEBUG /* (see ipcom_syslog.h) */
|
||||
#else
|
||||
#define IPCRYPTO_SYSLOG_PRIORITY IPCOM_LOG_WARNING
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef IP_SIZE
|
||||
#define IPCRYPTO_MINIMUM_FOOTPRINT
|
||||
#endif
|
||||
|
||||
#ifdef IPCRYPTO_MINIMUM_FOOTPRINT
|
||||
|
||||
/* Hash algorithms */
|
||||
@@ -87,13 +64,9 @@ extern "C" {
|
||||
|
||||
/* The following algorithms have an unclear patent situation, hence we exclude them */
|
||||
#define OPENSSL_NO_MDC2
|
||||
#ifndef IPCRYPTO_OPENSSL_1_0_2
|
||||
#define OPENSSL_NO_EC
|
||||
#define OPENSSL_NO_ECDH
|
||||
#define OPENSSL_NO_ECDSA
|
||||
#endif
|
||||
#define OPENSSL_NO_IDEA
|
||||
|
||||
|
||||
#ifdef OPENSSL_FIPS
|
||||
#define OPENSSL_NO_MD2
|
||||
/*#define OPENSSL_NO_MD4*/
|
||||
@@ -107,20 +80,6 @@ extern "C" {
|
||||
#define OPENSSL_NO_RC2
|
||||
#endif
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* OPENSSL_NO_S
|
||||
*===========================================================================
|
||||
*/
|
||||
#ifdef IPSSL
|
||||
#include <ipssl_config.h>
|
||||
#else
|
||||
#define OPENSSL_NO_SSL2
|
||||
#define OPENSSL_NO_SSL3
|
||||
#define OPENSSL_NO_TLS
|
||||
#define OPENSSL_NO_TLS1
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
@@ -136,7 +95,7 @@ extern "C" {
|
||||
*===========================================================================
|
||||
* Define to include openssl shell command applications.
|
||||
*/
|
||||
#if !defined(IP_PORT_ITRON) && !defined(IP_PORT_WIN32) && !defined(IPCRYPTO_MINIMUM_FOOTPRINT)
|
||||
#if !defined(IPCRYPTO_MINIMUM_FOOTPRINT)
|
||||
#define IPCRYPTO_USE_APPS
|
||||
#endif
|
||||
|
||||
@@ -146,21 +105,12 @@ extern "C" {
|
||||
* IPCRYPTO_USE_TEST
|
||||
*===========================================================================
|
||||
* Define to include openssl shell command test tools.
|
||||
#if !defined(IP_PORT_ITRON) && !defined(IPCRYPTO_MINIMUM_FOOTPRINT)
|
||||
#if !defined(IPCRYPTO_MINIMUM_FOOTPRINT)
|
||||
#endif
|
||||
*/
|
||||
#define IPCRYPTO_USE_TEST
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPCRYPTO_USE_KEY_DB_EXAMPLE_KEYS
|
||||
*===========================================================================
|
||||
* Define to install example DSA and RSA keys in the key db.
|
||||
*/
|
||||
#ifdef IPCOM_USE_KEY_DB
|
||||
#define IPCRYPTO_USE_KEY_DB_EXAMPLE_KEYS
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
|
||||
@@ -102,7 +102,7 @@ Component INCLUDE_IPDIAMETERP_CMD {
|
||||
Component INCLUDE_IPDIAMETER_TLS_CFG {
|
||||
NAME Diameter TLS Configuration
|
||||
SYNOPSIS Diameter TLS configuration parameters
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
CFG_PARAMS DIAMETER_TLS_ENABLED \
|
||||
DIAMETER_TLS_CERTIFICATE \
|
||||
DIAMETER_TLS_ROOT_CERTIFICATE \
|
||||
@@ -275,7 +275,7 @@ Parameter DIAMETER_TLS_ENABLED {
|
||||
NAME Enable TLS
|
||||
SYNOPSIS Control whether TLS is enabled or not on the local node. \
|
||||
If set to "1", TLS is enabled on the local node; if set \
|
||||
to "0", it is disabled. If TLS is enabled, IPCRYPTO and its \
|
||||
to "0", it is disabled. If TLS is enabled, IPSSL and its \
|
||||
requirements must be built, the other Diameter TLS \
|
||||
configuration parameters must be configured properly, \
|
||||
and certiface files and private key file must be loaded.
|
||||
|
||||
@@ -36,7 +36,7 @@ Component INCLUDE_IPEAP {
|
||||
|
||||
#if defined(_WRS_CONFIG_IPEAP_USE_EAP_COMMON_TLS) || defined(_WRS_CONFIG_IPEAP_USE_EAP_SIM) || defined(_WRS_CONFIG_IPEAP_USE_EAP_AKA)
|
||||
Component INCLUDE_IPEAP {
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,21 +1,11 @@
|
||||
/* 02comp_ipnet_ssl.cdf - IPSSL configuration file */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Wind River Systems, Inc.
|
||||
* Copyright (c) 2014, 2016, 2018, 2021-2022, 2024 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute or otherwise make use of this software
|
||||
* may be licensed only pursuant to the terms of an applicable Wind River
|
||||
* license agreement. No license to Wind River intellectual property rights
|
||||
* is granted herein. All rights not licensed by Wind River are reserved
|
||||
* by Wind River.
|
||||
* The right to copy, distribute, modify or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01a,10sep07,mze re-added missing LINK_SYMS
|
||||
*/
|
||||
|
||||
Folder FOLDER_SSL
|
||||
{
|
||||
NAME SSL Components
|
||||
@@ -25,10 +15,14 @@ Folder FOLDER_SSL
|
||||
|
||||
Component INCLUDE_IPSSL
|
||||
{
|
||||
NAME SSL
|
||||
NAME SSL module
|
||||
_CHILDREN FOLDER_SSL
|
||||
SYNOPSIS SSL Library
|
||||
SYNOPSIS This component includes Wind River SSL in the image
|
||||
and loads the ciphers.
|
||||
CONFIGLETTES ipssl_config.c
|
||||
INIT_RTN ipssl_init();
|
||||
_INIT_ORDER usrToolsInit
|
||||
INIT_AFTER INCLUDE_IPCRYPTO
|
||||
MODULES ipssl.o
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
}
|
||||
@@ -37,7 +31,9 @@ Component INCLUDE_IPSSL_USE_CMDS
|
||||
{
|
||||
NAME SSL Cmds
|
||||
_CHILDREN FOLDER_SSL
|
||||
SYNOPSIS SSL Cmds
|
||||
MODULES ipssl_cmds.o
|
||||
SYNOPSIS This component enables the command-interpreter commands \
|
||||
ciphers: s_client, s_server, s_time, ssl_clt, and ssl_srv.
|
||||
LINK_SYMS ipssl_cmd_ssl_srv \
|
||||
ipssl_cmd_ssl_clt \
|
||||
s_time_main \
|
||||
@@ -46,13 +42,3 @@ Component INCLUDE_IPSSL_USE_CMDS
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
}
|
||||
|
||||
Component INCLUDE_IPSSL_USE_TEST_CMDS
|
||||
{
|
||||
NAME SSL Test Cmds
|
||||
_CHILDREN FOLDER_SSL
|
||||
SYNOPSIS SSL Test Cmds
|
||||
LINK_SYMS ssltest_main
|
||||
REQUIRES INCLUDE_IPSSL
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,175 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK SOURCE FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipssl.c,v $ $Revision: 1.18 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipssl2/src/ipssl.c,v $
|
||||
* $Author: rboden $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* Copyright Interpeak AB 2000-2004 <www.interpeak.se>. All rights reserved.
|
||||
* Design and implementation by Roger Boden <roger@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipssl_config.h"
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_cstyle.h>
|
||||
#include <ipcom_os.h>
|
||||
#include <ipcom_sock.h>
|
||||
#include <ipcom_err.h>
|
||||
#include <ipcom_clib.h>
|
||||
|
||||
#include <ipssl.h>
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 EXTERN PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
void ssl_load_ciphers(void);
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 7 LOCAL PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
IP_PUBLIC Ip_fd ipssl_get_stdio_fd(void);
|
||||
IP_PUBLIC const char *ipssl_version(void);
|
||||
IP_GLOBAL int SSL_library_init(void);
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 8 DATA
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 9 STATIC FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 10 GLOBAL FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
IP_GLOBAL int
|
||||
SSL_library_init(void)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 11 PUBLIC FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ipssl_create
|
||||
*===========================================================================
|
||||
*/
|
||||
IP_PUBLIC Ip_err
|
||||
ipssl_create()
|
||||
{
|
||||
ssl_load_ciphers();
|
||||
return IPCOM_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ipssl_get_stdio_fd
|
||||
*===========================================================================
|
||||
*/
|
||||
IP_PUBLIC Ip_fd
|
||||
ipssl_get_stdio_fd(void)
|
||||
{
|
||||
#if IPCOM_USE_SHELL == IPCOM_SHELL_IPCOM
|
||||
Ipcom_proc *proc;
|
||||
|
||||
/* Find my shell socket. */
|
||||
proc = ipcom_proc_self();
|
||||
if(proc != IP_NULL)
|
||||
return proc->shell_fd;
|
||||
else
|
||||
return IP_INVALID_SOCKET;
|
||||
#endif
|
||||
|
||||
return ipcom_fileno(ip_stdin);
|
||||
}
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ipssl_start
|
||||
*===========================================================================
|
||||
*/
|
||||
IP_PUBLIC Ip_err
|
||||
ipssl_start(void)
|
||||
{
|
||||
return IPCOM_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* ipssl_version
|
||||
*===========================================================================
|
||||
* Description:
|
||||
* Parameters:
|
||||
* Returns:
|
||||
*
|
||||
*/
|
||||
IP_PUBLIC const char *
|
||||
ipssl_version(void)
|
||||
{
|
||||
return "@(#) IPSSL $Name: VXWORKS_ITER40_2019102207 $ - INTERPEAK_COPYRIGHT_STRING";
|
||||
}
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -1,15 +1,9 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK CONFIGURATION SOURCE FILE
|
||||
* Copyright (c) 2006-2014, 2016, 2021, 2024 Wind River Systems, Inc.
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipssl_config.c,v $ $Revision: 1.10 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipssl2/config/ipssl_config.c,v $
|
||||
* $Author: rboden $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* Copyright Interpeak AB 2000-2003 <www.interpeak.se>. All rights reserved.
|
||||
* Design and implementation by Roger Boden <roger@interpeak.se>
|
||||
******************************************************************************
|
||||
* The right to copy, distribute, modify or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
|
||||
@@ -24,21 +18,16 @@
|
||||
* 2 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "ipssl.h"
|
||||
#include "ipssl_config.h"
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_cstyle.h>
|
||||
#include <ipcom_shell.h>
|
||||
#include <ipcom_os.h>
|
||||
#include <ipcom_err.h>
|
||||
#include <ipcrypto_util.h>
|
||||
#include <ipcrypto_shell.h>
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
#define IPSSL_USE_TEST_CMDS
|
||||
#define IPSSL_USE_CMDS
|
||||
|
||||
#ifdef PRJ_BUILD
|
||||
|
||||
@@ -48,108 +37,59 @@
|
||||
#ifdef INCLUDE_IPSSL_USE_TEST_CMDS
|
||||
#define IPSSL_USE_TEST_CMDS
|
||||
#endif
|
||||
#ifdef INCLUDE_IPSSL_USE_CMDS
|
||||
#define IPSSL_USE_CMDS
|
||||
#endif
|
||||
|
||||
#endif /* PRJ_BUILD */
|
||||
|
||||
#if defined(IPSSL_USE_CMDS) && !defined(IP_PORT_VXWORKS) || defined(INCLUDE_IPSSL_USE_CMDS)
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPSSL_USE_CIPHERS_CMD
|
||||
*===========================================================================
|
||||
* Define to include the ciphers shell command
|
||||
*/
|
||||
#ifndef IP_PORT_LAS
|
||||
#if defined(IPSSL_USE_CMDS) && defined(INCLUDE_IPSSL_USE_CMDS)
|
||||
#define IPSSL_USE_CIPHERS_CMD
|
||||
#endif
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPSSL_USE_S_CLIENT_CMD
|
||||
*===========================================================================
|
||||
* Define to include the s_client shell command
|
||||
*/
|
||||
#if !defined(IP_PORT_ITRON) && !defined(IP_PORT_LAS)
|
||||
#define IPSSL_USE_S_CLIENT_CMD
|
||||
#endif
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPSSL_USE_S_SERVER_CMD
|
||||
*===========================================================================
|
||||
* Define to include the s_server shell command
|
||||
*/
|
||||
#if !defined(IP_PORT_ITRON) && !defined(IP_PORT_LAS)
|
||||
#define IPSSL_USE_S_SERVER_CMD
|
||||
#endif
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPSSL_USE_S_TIME_CMD
|
||||
*===========================================================================
|
||||
* Define to include the s_time shell command
|
||||
*/
|
||||
#ifndef IP_PORT_LAS
|
||||
#define IPSSL_USE_S_TIME_CMD
|
||||
#endif
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPSSL_USE_SSL_SRV_CMD
|
||||
*===========================================================================
|
||||
* Define to include the ssl_srv shell command
|
||||
*/
|
||||
#ifndef IP_PORT_LAS
|
||||
#ifdef INCLUDE_IPNET
|
||||
#define IPSSL_USE_SSL_SRV_CMD
|
||||
#endif
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPSSL_USE_SSL_CLT_CMD
|
||||
*===========================================================================
|
||||
* Define to include the ssl_clt shell command
|
||||
*/
|
||||
#ifndef IP_PORT_LAS
|
||||
#define IPSSL_USE_SSL_CLT_CMD
|
||||
#endif
|
||||
|
||||
#endif /*INCLUDE_IPNET*/
|
||||
#endif /* IPSSL_USE_CMDS */
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 EXTERN PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
extern int ipssl_init(void);
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 LOCAL PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
#ifdef IPSSL_USE_CMDS
|
||||
IP_PUBLIC void ipcrypto_cmds_startup(void);
|
||||
void ipcrypto_cmds_startup(void);
|
||||
|
||||
#ifndef OPENSSL_NO_STDIO
|
||||
#ifdef IPSSL_USE_CIPHERS_CMD
|
||||
IP_PUBLIC int ciphers_main(int argc, char** argv);
|
||||
int ciphers_main(int argc, char** argv);
|
||||
#endif
|
||||
#ifdef IPSSL_USE_S_CLIENT_CMD
|
||||
IP_PUBLIC int s_client_main(int argc, char** argv);
|
||||
int s_client_main(int argc, char** argv);
|
||||
#endif
|
||||
#ifdef IPSSL_USE_S_SERVER_CMD
|
||||
IP_PUBLIC int s_server_main(int argc, char** argv);
|
||||
int s_server_main(int argc, char** argv);
|
||||
#endif
|
||||
#ifdef IPSSL_USE_S_TIME_CMD
|
||||
IP_PUBLIC int s_time_main(int argc, char** argv);
|
||||
int s_time_main(int argc, char** argv);
|
||||
#endif
|
||||
#ifdef IPSSL_USE_SSL_CLT_CMD
|
||||
int ipssl_cmd_ssl_clt(int argc, char** argv);
|
||||
#endif
|
||||
#ifdef IPSSL_USE_SSL_SRV_CMD
|
||||
int ipssl_cmd_ssl_srv(int argc, char** argv);
|
||||
#endif
|
||||
#ifdef IPSSL_USE_TEST_CMDS
|
||||
int ssltest_main(int argc, char** argv);
|
||||
#endif
|
||||
|
||||
IP_PUBLIC Ip_err ipssl_configure(void);
|
||||
#endif /*OPENSSL_NO_STDIO*/
|
||||
#endif /*IPSSL_USE_CMDS*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
@@ -163,48 +103,48 @@ IP_PUBLIC Ip_err ipssl_configure(void);
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef IPSSL_USE_CIPHERS_CMD
|
||||
IP_GLOBAL int
|
||||
ipssl_ciphers(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return ciphers_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_TIME_CMD
|
||||
IP_GLOBAL int
|
||||
ipssl_s_time(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_time_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_CLIENT_CMD
|
||||
IP_GLOBAL int
|
||||
ipssl_s_client(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_client_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_SERVER_CMD
|
||||
IP_GLOBAL int
|
||||
ipssl_s_server(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_server_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 9 GLOBAL FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#if defined(IPSSL_USE_CIPHERS_CMD) && !defined(OPENSSL_NO_STDIO)
|
||||
int
|
||||
ipssl_ciphers(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return ciphers_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(IPSSL_USE_S_TIME_CMD) && !defined(OPENSSL_NO_STDIO)
|
||||
int
|
||||
ipssl_s_time(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_time_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(IPSSL_USE_S_CLIENT_CMD) && !defined(OPENSSL_NO_STDIO)
|
||||
int
|
||||
ipssl_s_client(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_client_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(IPSSL_USE_S_SERVER_CMD) && !defined(OPENSSL_NO_STDIO)
|
||||
int
|
||||
ipssl_s_server(int argc, char** argv)
|
||||
{
|
||||
ipcrypto_cmds_startup();
|
||||
return s_server_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 10 PUBLIC FUNCTIONS
|
||||
@@ -216,41 +156,36 @@ ipssl_s_server(int argc, char** argv)
|
||||
* ipssl_configure
|
||||
*===========================================================================
|
||||
*/
|
||||
IP_PUBLIC Ip_err
|
||||
int
|
||||
ipssl_configure(void)
|
||||
{
|
||||
#ifndef OPENSSL_NO_STDIO
|
||||
#ifdef IPSSL_USE_CIPHERS_CMD
|
||||
ipcom_shell_add_cmd("ciphers", "ciphers", "SSL Cipher Suites", ipssl_ciphers,
|
||||
IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_MAX);
|
||||
(void)ipcrypto_shell_add_cmd("ciphers", "ciphers", "SSL Cipher Suites", ipssl_ciphers);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_CLIENT_CMD
|
||||
ipcom_shell_add_cmd("s_client", "s_client", "SSL client", ipssl_s_client,
|
||||
IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_MAX);
|
||||
(void)ipcrypto_shell_add_cmd("s_client", "s_client", "SSL client", ipssl_s_client);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_SERVER_CMD
|
||||
ipcom_shell_add_cmd("s_server", "s_server", "SSL server", ipssl_s_server,
|
||||
IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_MAX);
|
||||
(void)ipcrypto_shell_add_cmd("s_server", "s_server", "SSL server", ipssl_s_server);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_TIME_CMD
|
||||
ipcom_shell_add_cmd("s_time", "s_time", "Time SSL connection", ipssl_s_time,
|
||||
IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_MAX);
|
||||
(void)ipcrypto_shell_add_cmd("s_time", "s_time", "Time SSL connection", ipssl_s_time);
|
||||
#endif
|
||||
|
||||
#ifdef _WRS_CONFIG_IPNET_COREIP
|
||||
#ifdef IPSSL_USE_SSL_CLT_CMD
|
||||
ipcom_shell_add_cmd("ssl_clt", "ssl_clt", "SSL client for performance measurements ", ipssl_cmd_ssl_clt,
|
||||
IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_MAX);
|
||||
(void)ipcrypto_shell_add_cmd("ssl_clt", "ssl_clt", "SSL client for performance measurements ", ipssl_cmd_ssl_clt);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_SSL_SRV_CMD
|
||||
ipcom_shell_add_cmd("ssl_srv", "ssl_srv", "SSL server for performance measurements ", ipssl_cmd_ssl_srv,
|
||||
IPCOM_PRIORITY_DEFAULT, IPCOM_PROC_STACK_MAX);
|
||||
(void)ipcrypto_shell_add_cmd("ssl_srv", "ssl_srv", "SSL server for performance measurements ", ipssl_cmd_ssl_srv);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_TEST_CMDS
|
||||
ipcom_shell_add_cmd("ssltest", "ssltest", "ssltest", ssltest_main,
|
||||
IPCOM_PRIORITY_DEFAULT, (64*1024-1));
|
||||
#endif /*_WRS_CONFIG_IPNET_COREIP*/
|
||||
#endif
|
||||
|
||||
return IPCOM_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -259,4 +194,3 @@ ipssl_configure(void)
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user