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:
@@ -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
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user