diff options
| author | deraadt <> | 2014-06-07 15:06:24 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-07 15:06:24 +0000 |
| commit | 9c53764a0ba4c6e9262d0f1609e2b5f26d82e845 (patch) | |
| tree | 8c109a1ee473f778c99439e5209def2f14539e9f /src/lib/libcrypto/evp/evp_pbe.c | |
| parent | f43ea7a8b36a855d94df48cdbc5ae25525d67207 (diff) | |
| download | openbsd-9c53764a0ba4c6e9262d0f1609e2b5f26d82e845.tar.gz openbsd-9c53764a0ba4c6e9262d0f1609e2b5f26d82e845.tar.bz2 openbsd-9c53764a0ba4c6e9262d0f1609e2b5f26d82e845.zip | |
Remove various test stubs. The good ones have been moved by jsing
and others to the regress framework. These remaining ones just
muddle us up when re-reading code repeatedly.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/evp_pbe.c')
| -rw-r--r-- | src/lib/libcrypto/evp/evp_pbe.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lib/libcrypto/evp/evp_pbe.c b/src/lib/libcrypto/evp/evp_pbe.c index 779c1592da..dc8b5f51fc 100644 --- a/src/lib/libcrypto/evp/evp_pbe.c +++ b/src/lib/libcrypto/evp/evp_pbe.c | |||
| @@ -111,30 +111,6 @@ static const EVP_PBE_CTL builtin_pbe[] = { | |||
| 111 | {EVP_PBE_TYPE_PRF, NID_id_HMACGostR3411_94, -1, NID_id_GostR3411_94, 0}, | 111 | {EVP_PBE_TYPE_PRF, NID_id_HMACGostR3411_94, -1, NID_id_GostR3411_94, 0}, |
| 112 | }; | 112 | }; |
| 113 | 113 | ||
| 114 | #ifdef TEST | ||
| 115 | int | ||
| 116 | main(int argc, char **argv) | ||
| 117 | { | ||
| 118 | int i, nid_md, nid_cipher; | ||
| 119 | EVP_PBE_CTL *tpbe, *tpbe2; | ||
| 120 | /*OpenSSL_add_all_algorithms();*/ | ||
| 121 | |||
| 122 | for (i = 0; i < sizeof(builtin_pbe) / sizeof(EVP_PBE_CTL); i++) { | ||
| 123 | tpbe = builtin_pbe + i; | ||
| 124 | fprintf(stderr, "%d %d %s ", tpbe->pbe_type, tpbe->pbe_nid, | ||
| 125 | OBJ_nid2sn(tpbe->pbe_nid)); | ||
| 126 | if (EVP_PBE_find(tpbe->pbe_type, tpbe->pbe_nid, | ||
| 127 | &nid_cipher , &nid_md, 0)) | ||
| 128 | fprintf(stderr, "Found %s %s\n", | ||
| 129 | OBJ_nid2sn(nid_cipher), OBJ_nid2sn(nid_md)); | ||
| 130 | else | ||
| 131 | fprintf(stderr, "Find ERROR!!\n"); | ||
| 132 | } | ||
| 133 | |||
| 134 | return 0; | ||
| 135 | } | ||
| 136 | #endif | ||
| 137 | |||
| 138 | int | 114 | int |
| 139 | EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, | 115 | EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, |
| 140 | ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de) | 116 | ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de) |
