updated tests a bit

This commit is contained in:
John Jones 2016-11-10 16:34:19 -05:00
parent fc6d9b9797
commit 9222925d49
3 changed files with 19 additions and 1 deletions

12
.gitignore vendored Normal file
View file

@ -0,0 +1,12 @@
*
!.gitignore
!Makefile
!**/
*.o
.cproject
.project
.settings/language.settings.xml
*.a
test/testit_libp2p

View file

@ -29,6 +29,12 @@ int test_crypto_rsa_private_key_der() {
return 0; return 0;
if (private_key.der == NULL) if (private_key.der == NULL)
return 0; return 0;
// print out public key
//for (int i = 0; i < private_key.public_key_length; i++) {
// printf("%02x", private_key.public_key_der[i]);
//}
//printf("\n");
return 1; return 1;
} }

View file

@ -17,7 +17,7 @@ int testit(const char* name, int (*func)(void)) {
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {
//testit("test_crypto_rsa_public_key_bytes", test_crypto_rsa_public_key_bytes); testit("test_crypto_rsa_private_key_der", test_crypto_rsa_private_key_der);
//testit("test_crypto_x509_private_to_der", test_crypto_x509_private_to_der); //testit("test_crypto_x509_private_to_der", test_crypto_x509_private_to_der);
testit("test_crypto_x509_der_to_private2", test_crypto_x509_der_to_private2); testit("test_crypto_x509_der_to_private2", test_crypto_x509_der_to_private2);
testit("test_crypto_x509_der_to_private", test_crypto_x509_der_to_private); testit("test_crypto_x509_der_to_private", test_crypto_x509_der_to_private);