add GetOjbectSize for CYASSL*

This commit is contained in:
toddouska 2012-09-05 08:26:08 -07:00
parent 982526ed13
commit 43a0a21fb6
2 changed files with 8 additions and 0 deletions

View File

@ -779,6 +779,7 @@ enum {
CYASSL_CHAIN_CA = 2 /* added to cache from trusted chain */
};
CYASSL_API int CyaSSL_GetObjectSize(void); /* object size based on build */
CYASSL_API int CyaSSL_SetVersion(CYASSL* ssl, int version);
CYASSL_API int CyaSSL_KeyPemToDer(const unsigned char*, int sz, unsigned char*,
int, const char*);

View File

@ -209,6 +209,13 @@ int CyaSSL_negotiate(CYASSL* ssl)
}
/* object size based on build */
int CyaSSL_GetObjectSize(void)
{
return sizeof(CYASSL);
}
/* server Diffie-Hellman parameters */
int CyaSSL_SetTmpDH(CYASSL* ssl, const unsigned char* p, int pSz,
const unsigned char* g, int gSz)