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,29 +0,0 @@
|
||||
/* 02comp_ossl.cdf - OpenSSL 3.5.0 configuration file */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2026 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01a.22may26,ssp created
|
||||
*/
|
||||
|
||||
|
||||
Component INCLUDE_OPENSSL_350_SHELL_CMDS
|
||||
{
|
||||
NAME OpenSSL 3.5.0 Commands
|
||||
_CHILDREN FOLDER_CRYPTO
|
||||
SYNOPSIS OpenSSL version 3.5.0 Commands
|
||||
CONFIGLETTES addOssl350ShellCmds.c
|
||||
_INIT_ORDER usrToolsInit
|
||||
INIT_RTN addOssl350ShellCmds ();
|
||||
REQUIRES INCLUDE_IPCRYPTO
|
||||
}
|
||||
@@ -63,6 +63,7 @@ OBJS += ipcrypto_util.o
|
||||
OBJS += ipcrypto.o
|
||||
OBJS += ipcrypto_aescmac.o
|
||||
OBJS += ipcrypto_start.o
|
||||
OBJS += ipssl_start.o
|
||||
|
||||
include $(WIND_BASE)/target/h/make/rules.library
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
#define IPCOM_USE_SHELL IPCOM_SHELL_NATIVE
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_cstyle.h>
|
||||
#include <ipcom_clib.h>
|
||||
@@ -50,7 +52,6 @@
|
||||
#define IPSSL_CMD_PORT 5005
|
||||
#define IPSSL_CMD_BUF_LEN 1440
|
||||
#define IPSSL_CMD_TIME 3
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* 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
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_err.h>
|
||||
#include <ipcom_cstyle.h>
|
||||
#include <ipcom_os.h>
|
||||
#include <ipcom_sock.h>
|
||||
#include <ipcom_clib.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()
|
||||
{
|
||||
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
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK API HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipssl.h,v $ $Revision: 1.9.10.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/ipssl2/include/ipssl.h,v $
|
||||
* $Author: jli7 $ $Date: 2016-12-20 08:08:58 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* Copyright Interpeak AB 2000-2007 <www.interpeak.se>. All rights reserved.
|
||||
* Design and implementation by Roger Boden <roger@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IPSSL_H
|
||||
#define IPSSL_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_cstyle.h>
|
||||
|
||||
#include "ipssl_config.h"
|
||||
|
||||
#include <openssl/evp.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#define IPSSL_RELEASE 60900
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 FUNCTIONS
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#ifdef IPSSL_USE_CMDS
|
||||
#ifdef IPSSL_USE_CIPHERS_CMD
|
||||
IP_GLOBAL int ipssl_ciphers(int argc, char** argv);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_CLIENT_CMD
|
||||
IP_GLOBAL int ipssl_s_client(int argc, char** argv);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_SERVER_CMD
|
||||
IP_GLOBAL int ipssl_s_server(int argc, char** argv);
|
||||
#endif
|
||||
|
||||
#ifdef IPSSL_USE_S_TIME_CMD
|
||||
IP_GLOBAL int ipssl_s_time(int argc, char** argv);
|
||||
#endif
|
||||
|
||||
IP_GLOBAL int ipssl_cmd_ssl_clt(int argc, char** argv);
|
||||
|
||||
IP_GLOBAL int ipssl_cmd_ssl_srv(int argc, char** argv);
|
||||
#endif /* IPSSL_USE_CMDS */
|
||||
|
||||
#ifdef IPSSL_USE_TEST_CMDS
|
||||
IP_PUBLIC int ssltest_main(int argc, char** argv);
|
||||
#endif
|
||||
|
||||
IP_PUBLIC Ip_err ipssl_create(void);
|
||||
IP_PUBLIC Ip_err ipssl_start(void);
|
||||
|
||||
#ifdef IPCRYPTO_OPENSSL_1_0_2
|
||||
|
||||
void ipssl_tls1_PRF(long digest_mask,
|
||||
const void *seed1, int seed1_len,
|
||||
const void *seed2, int seed2_len,
|
||||
const void *seed3, int seed3_len,
|
||||
const void *seed4, int seed4_len,
|
||||
const void *seed5, int seed5_len,
|
||||
const unsigned char *sec, int slen,
|
||||
unsigned char *out1,
|
||||
unsigned char *out2, int olen);
|
||||
|
||||
#else
|
||||
void ipssl_tls1_PRF(const EVP_MD *md5, const EVP_MD *sha1,
|
||||
unsigned char *label, int label_len,
|
||||
const unsigned char *sec, int slen, unsigned char *out1,
|
||||
unsigned char *out2, int olen);
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user