diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad0cf32 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +* + +!.gitignore +!Makefile +!**/ + +*.o +.cproject +.project +.settings/language.settings.xml +*.a +test/testit_libp2p diff --git a/test/crypto/test_rsa.h b/test/crypto/test_rsa.h index 6684494..4d5592f 100644 --- a/test/crypto/test_rsa.h +++ b/test/crypto/test_rsa.h @@ -29,6 +29,12 @@ int test_crypto_rsa_private_key_der() { return 0; if (private_key.der == NULL) 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; } diff --git a/test/testit.c b/test/testit.c index b2bc22c..ef3aaca 100644 --- a/test/testit.c +++ b/test/testit.c @@ -17,7 +17,7 @@ int testit(const char* name, int (*func)(void)) { } 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_der_to_private2", test_crypto_x509_der_to_private2); testit("test_crypto_x509_der_to_private", test_crypto_x509_der_to_private);