/
pspssl.h
58 lines (50 loc) · 1.11 KB
/
pspssl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspssl.h - Interface to the ssl library.
*
* Copyright (c) 2008 David Perry (InsertWittyName)
* Copyright (c) 2008 moonlight
*
*/
#ifndef __PSPSSL_H__
#define __PSPSSL_H__
#if defined(__cplusplus)
extern "C" {
#endif
/**
* Init the ssl library.
*
* @param unknown1 - Memory size? Pass 0x28000
*
* @return 0 on success
*/
int sceSslInit(int unknown1);
/**
* Terminate the ssl library.
*
* @return 0 on success
*/
int sceSslEnd(void);
/**
* Get the maximum memory size used by ssl.
*
* @param memory - Pointer where the maximum memory used value will be stored.
*
* @return 0 on success
*/
int sceSslGetUsedMemoryMax(unsigned int *memory);
/**
* Get the current memory size used by ssl.
*
* @param memory - Pointer where the current memory used value will be stored.
*
* @return 0 on success
*/
int sceSslGetUsedMemoryCurrent(unsigned int *memory);
#if defined(__cplusplus)
};
#endif
#endif