vitasdk
Documentation of the vitasdk
libssl.h
Go to the documentation of this file.
1
7#ifndef _PSP2_SSL_LIBSSL_H
8#define _PSP2_SSL_LIBSSL_H
9
10#include <vitasdk/build_utils.h>
11#include <psp2/rtc.h>
12
22
23typedef void SceSslCert;
24typedef void SceSslCertName;
25
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#define sceSslEnd() sceSslTerm()
39
40int sceSslInit(unsigned poolSize);
41int sceSslTerm(void);
43int sceSslGetSerialNumber(SceSslCert *sslCert, const char **sboData, unsigned *sboLen);
47int sceSslGetNameEntryInfo(SceSslCertName *certName, int entryNum, char *oidname, unsigned maxOidnameLen, char *value, unsigned maxValueLen, unsigned *valueLen);
51
52#ifdef __cplusplus
53}
54#endif
55#endif
56
#define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
Definition build_utils.h:13
SceSslCertName * sceSslGetSubjectName(SceSslCert *sslCert)
int sceSslInit(unsigned poolSize)
unsigned maxInuseSize
Definition libssl.h:28
int sceSslGetNameEntryCount(SceSslCertName *certName)
int reserved
Definition libssl.h:30
int sceSslTerm(void)
int sceSslFreeSslCertName(SceSslCertName *certName)
void SceSslCert
Definition libssl.h:23
int sceSslGetMemoryPoolStats(SceSslMemoryPoolStats *currentStat)
int sceSslGetSerialNumber(SceSslCert *sslCert, const char **sboData, unsigned *sboLen)
unsigned currentInuseSize
Definition libssl.h:29
int sceSslGetNotBefore(SceSslCert *sslCert, SceRtcTick *begin)
SceSslErrorCode
Definition libssl.h:13
SceSslCertName * sceSslGetIssuerName(SceSslCert *sslCert)
int sceSslGetNameEntryInfo(SceSslCertName *certName, int entryNum, char *oidname, unsigned maxOidnameLen, char *value, unsigned maxValueLen, unsigned *valueLen)
unsigned poolSize
Definition libssl.h:27
void SceSslCertName
Definition libssl.h:24
int sceSslGetNotAfter(SceSslCert *sslCert, SceRtcTick *limit)
@ SCE_SSL_ERROR_INTERNAL
Definition libssl.h:18
@ SCE_SSL_ERROR_OUT_OF_MEMORY
Definition libssl.h:16
@ SCE_SSL_ERROR_INVALID_VALUE
Definition libssl.h:20
@ SCE_SSL_ERROR_INVALID_FORMAT
Definition libssl.h:19
@ SCE_SSL_ERROR_BEFORE_INIT
Definition libssl.h:14
@ SCE_SSL_ERROR_ALREADY_INITED
Definition libssl.h:15
@ SCE_SSL_ERROR_NOT_FOUND
Definition libssl.h:17
Definition libssl.h:26
Definition rtc.h:48