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 
13 typedef enum SceSslErrorCode {
18  SCE_SSL_ERROR_INTERNAL = 0x80435026,
20  SCE_SSL_ERROR_INVALID_VALUE = 0x804351FE
22 
23 typedef void SceSslCert;
24 typedef void SceSslCertName;
25 
26 typedef struct SceSslMemoryPoolStats{
27  unsigned poolSize;
28  unsigned maxInuseSize;
29  unsigned currentInuseSize;
30  int reserved;
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #define sceSslEnd() sceSslTerm()
39 
40 int sceSslInit(unsigned poolSize);
41 int sceSslTerm(void);
43 int sceSslGetSerialNumber(SceSslCert *sslCert, const char **sboData, unsigned *sboLen);
45 int sceSslGetNotAfter(SceSslCert *sslCert, SceRtcTick *limit);
47 int 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 
int sceSslInit(unsigned poolSize)
SceSslCertName * sceSslGetIssuerName(SceSslCert *sslCert)
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
VITASDK_BUILD_ASSERT_EQ(0x10, SceSslMemoryPoolStats)
int sceSslGetNameEntryInfo(SceSslCertName *certName, int entryNum, char *oidname, unsigned maxOidnameLen, char *value, unsigned maxValueLen, unsigned *valueLen)
unsigned poolSize
Definition: libssl.h:27
SceSslCertName * sceSslGetSubjectName(SceSslCert *sslCert)
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