⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ospnossl.c

📁 mgcp协议源代码。支持多种编码:g711
💻 C
字号:
/**########################################################################*########################################################################*########################################################################*                                                               *   COPYRIGHT (c) 1998 by TransNexus, LLC                          *                                                                    *   This software contains proprietary and confidential information  *   of TransNexus, LLC. Except as may be set forth in the license    *   agreement under which this software is supplied, use, disclosure, *   or reproduction is prohibited without the prior, express, written*   consent of TransNexus, LLC.                                      *                                     *******#########################################################################*#########################################################################*#########################################################################*//* * ospnossl.c - SSL API bridge to NO SSL IMPLEMENTATION !!! */#include "osp.h"#include "ospsocket.h"#include "ospssl.h"#include "osputils.h"#include "ospcomm.h"#include "ospsecurity.h"intOSPPSSLWrapInit(    void    * ospvRef){    int errorcode = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapInit()\n"));    OSPM_ARGUSED(ospvRef);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapInit()\n"));    return errorcode;}voidOSPPSSLWrapCleanup(    void *ospvRef){    OSPM_DBGENTER(("ENTER: OSPPSSLWrapCleanup()\n"));    OSPM_ARGUSED(ospvRef);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapCleanup()\n"));    return;}intOSPPSSLWrapSessionContextNew(    void           *ospvConnection,    void           *ospvContextRef){    int                 errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapSessionContextNew()\n"));    OSPM_ARGUSED(ospvConnection);    OSPM_ARGUSED(ospvContextRef);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapSessionContextNew() (%d)\n", errorcode));    return errorcode;}intOSPPSSLWrapAttachConnection(    OSPTSSLSESSION *ospvSSLSession,     void           *ospvConnection){    int         errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapAttachConnection()\n"));    OSPM_ARGUSED(ospvSSLSession);    OSPM_ARGUSED(ospvConnection);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapAttachConnection() (%d)\n", errorcode));    return errorcode;}intOSPPSSLWrapHandshake(     OSPTSSLSESSION *ospvSSLSession){    int    errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapHandshake()\n"));    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapHandshake() (%d)\n", errorcode));    OSPM_ARGUSED(ospvSSLSession);    return errorcode;}intOSPPSSLWrapSessionContextDelete(    OSPTSSLSESSION *ospvSSLSession){    int    errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapSessionContextDelete()\n"));    OSPM_ARGUSED(ospvSSLSession);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapSessionContextDelete() (%d)\n", errorcode));    return errorcode;}intOSPPSSLWrapGetData(    void           *ospvBuffer,     unsigned int   *ospvLength,     OSPTSSLSESSION *ospvSSLSession){    int               errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapGetData()\n"));    OSPM_ARGUSED(ospvBuffer);    OSPM_ARGUSED(ospvLength);    OSPM_ARGUSED(ospvSSLSession);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapGetData() (%d)\n", errorcode));    return errorcode;}intOSPPSSLWrapSendData(    void           *ospvBuffer,     unsigned int   *ospvLength,     OSPTSSLSESSION *ospvSSLSession){    int         errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapSendData()\n"));    OSPM_ARGUSED(ospvBuffer);    OSPM_ARGUSED(ospvLength);    OSPM_ARGUSED(ospvSSLSession);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapSendData() (%d)\n", errorcode));    return errorcode;}void OSPPSSLWrapFreeServerRootCACert(    void **ospvRootCACert){      OSPM_DBGENTER(("ENTER: OSPPSSLWrapFreeServerRootCACert()\n"));    OSPM_ARGUSED(ospvRootCACert);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapFreeServerRootCACert()\n"));    return;}intOSPPSSLWrapGetServerRootCACert(    void           **ospvRootCACert,    int            *ospvRootCACertLen,    OSPTSSLSESSION *ospvSSLSession){    int         errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapGetServerRootCACert()\n"));    OSPM_ARGUSED(ospvRootCACert);    OSPM_ARGUSED(ospvRootCACertLen);    OSPM_ARGUSED(ospvSSLSession);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapGetServerRootCACert() (%d)\n", errorcode));    return errorcode;}intOSPPSSLWrapSessionGracefulShutdown(    OSPTSSLSESSION *ospvSSLSession){    int         errorcode      = OSPC_ERR_NO_ERROR;    OSPM_DBGENTER(("ENTER: OSPPSSLWrapSessionGracefulShutdown()\n"));    OSPM_ARGUSED(ospvSSLSession);    OSPM_DBGEXIT(("EXIT : OSPPSSLWrapSessionGracefulShutdown() (%d)\n", errorcode));    return errorcode;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -