cyassl object size debug output

This commit is contained in:
toddouska 2012-09-05 09:02:51 -07:00
parent 43a0a21fb6
commit 56960ef1cc

View File

@ -212,6 +212,28 @@ int CyaSSL_negotiate(CYASSL* ssl)
/* object size based on build */
int CyaSSL_GetObjectSize(void)
{
#ifdef SHOW_SIZES
printf("sizeof suites = %d\n", sizeof(Suites));
printf("sizeof ciphers(2) = %d\n", sizeof(Ciphers));
printf("\tsizeof arc4 = %d\n", sizeof(Arc4));
printf("\tsizeof aes = %d\n", sizeof(Aes));
printf("\tsizeof des3 = %d\n", sizeof(Des3));
printf("\tsizeof rabbit = %d\n", sizeof(Rabbitj));
printf("sizeof cipher specs = %d\n", sizeof(CipherSpecs));
printf("sizeof keys = %d\n", sizeof(Keys));
printf("sizeof RNG = %d\n", sizeof(RNG));
printf("sizeof MD5 = %d\n", sizeof(Md5));
printf("sizeof SHA = %d\n", sizeof(Sha));
printf("sizeof SHA256 = %d\n", sizeof(Sha256));
printf("sizeof Hashes(2) = %d\n", sizeof(Hashes));
printf("sizeof Buffers = %d\n", sizeof(Buffers));
printf("sizeof Options = %d\n", sizeof(Options));
printf("sizeof Arrays = %d\n", sizeof(Arrays));
printf("sizeof Session = %d\n", sizeof(CYASSL_SESSION));
printf("sizeof peerKey = %d\n", sizeof(RsaKey));
printf("sizeof CYASSL_CIPHER = %d\n", sizeof(CYASSL_CIPHER));
#endif
return sizeof(CYASSL);
}