OLD | NEW |
1 /* crypto/evp/e_rc2.c */ | 1 /* crypto/evp/e_rc2.c */ |
2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
8 * | 8 * |
9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 *(int *)ptr = data(c)->key_bits; | 216 *(int *)ptr = data(c)->key_bits; |
217 return 1; | 217 return 1; |
218 | 218 |
219 case EVP_CTRL_SET_RC2_KEY_BITS: | 219 case EVP_CTRL_SET_RC2_KEY_BITS: |
220 if(arg > 0) | 220 if(arg > 0) |
221 { | 221 { |
222 data(c)->key_bits = arg; | 222 data(c)->key_bits = arg; |
223 return 1; | 223 return 1; |
224 } | 224 } |
225 return 0; | 225 return 0; |
| 226 #ifdef PBE_PRF_TEST |
| 227 case EVP_CTRL_PBE_PRF_NID: |
| 228 *(int *)ptr = NID_hmacWithMD5; |
| 229 return 1; |
| 230 #endif |
226 | 231 |
227 default: | 232 default: |
228 return -1; | 233 return -1; |
229 } | 234 } |
230 } | 235 } |
231 | 236 |
232 #endif | 237 #endif |
OLD | NEW |