This package includes the SharkSSL lite library and header files.

Dependents:   WebSocket-Client-Example SharkMQ-LED-Demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers selibplat.h Source File

selibplat.h

00001 /**
00002  *     ____             _________                __                _
00003  *    / __ \___  ____ _/ /_  __(_)___ ___  ___  / /   ____  ____ _(_)____
00004  *   / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ /   / __ \/ __ `/ / ___/
00005  *  / _, _/  __/ /_/ / / / / / / / / / / /  __/ /___/ /_/ / /_/ / / /__
00006  * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
00007  *                                                       /____/
00008  *
00009  *                 SharkSSL Embedded SSL/TLS Stack
00010  ****************************************************************************
00011  *   PROGRAM MODULE
00012  *
00013  *   $Id: selibplat.h 3871 2016-03-27 01:23:13Z wini $
00014  *
00015  *   COPYRIGHT:  Real Time Logic LLC, 2014 - 2016
00016  *
00017  *   This software is copyrighted by and is the sole property of Real
00018  *   Time Logic LLC.  All rights, title, ownership, or other interests in
00019  *   the software remain the property of Real Time Logic LLC.  This
00020  *   software may only be used in accordance with the terms and
00021  *   conditions stipulated in the corresponding license agreement under
00022  *   which the software has been supplied.  Any unauthorized use,
00023  *   duplication, transmission, distribution, or disclosure of this
00024  *   software is expressly forbidden.
00025  *
00026  *   This Copyright notice may not be removed or modified without prior
00027  *   written consent of Real Time Logic LLC.
00028  *
00029  *   Real Time Logic LLC. reserves the right to modify this software
00030  *   without notice.
00031  *
00032  *               http://realtimelogic.com
00033  *               http://sharkssl.com
00034  ****************************************************************************
00035  *
00036  */
00037 
00038 #define SharkSSLLwIP
00039 #define NO_BSD_SOCK
00040 
00041 struct netconn;
00042 struct netbuf;
00043 
00044 typedef struct
00045 {
00046    struct netconn* con;
00047    struct netbuf* nbuf;
00048    int pbOffs;
00049 } SOCKET;
00050 
00051 #if __MBED__
00052 #include <stdio.h>
00053 #ifndef B_LITTLE_ENDIAN
00054 #define B_LITTLE_ENDIAN
00055 #endif
00056 #define XTYPES
00057 #define xprintf(x) printf x
00058 #endif