SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SeCtx.h File Reference
#include <setjmp.h>
#include <TargConfig.h>

Go to the source code of this file.

Data Structures

struct  SeCtx
 SeCtx structure: See Context Manager and Bare Metal Systems for details. More...
 

Macros

#define SE_CTX
 
#define SeCtx_setStackTop(o, stackMark)    (*(stackMark)=1,(o)->stackTop=stackMark,setjmp((o)->startContext))
 
#define SeCtx_destructor(o)
 

Typedefs

typedef void(* SeCtxTask) (struct SeCtx *ctx)
 The task/thread entry point. More...
 
typedef struct SeCtx SeCtx
 SeCtx structure: See Context Manager and Bare Metal Systems for details. More...
 

Functions

void SeCtx_constructor (SeCtx *o, SeCtxTask t, void *buf, int bufLen)
 Create a Context Manager instance. More...
 
void SeCtx_save (SeCtx *o)
 
void SeCtx_restore (SeCtx *o)
 
void SeCtx_panic (SeCtx *o, U32 size)
 Function you must implement. More...
 

Macro Definition Documentation

◆ SE_CTX

#define SE_CTX