digest.c (205128) | digest.c (206046) |
---|---|
1/* crypto/evp/digest.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 221 unchanged lines hidden (view full) --- 230 if(impl) 231 { 232 /* There's an ENGINE for this job ... (apparently) */ 233 const EVP_MD *d = ENGINE_get_digest(impl, (*ptype)->type); 234 if(!d) 235 { 236 /* Same comment from evp_enc.c */ 237 EVPerr(EVP_F_DO_EVP_MD_ENGINE,EVP_R_INITIALIZATION_ERROR); | 1/* crypto/evp/digest.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 221 unchanged lines hidden (view full) --- 230 if(impl) 231 { 232 /* There's an ENGINE for this job ... (apparently) */ 233 const EVP_MD *d = ENGINE_get_digest(impl, (*ptype)->type); 234 if(!d) 235 { 236 /* Same comment from evp_enc.c */ 237 EVPerr(EVP_F_DO_EVP_MD_ENGINE,EVP_R_INITIALIZATION_ERROR); |
238 ENGINE_finish(impl); |
|
238 return 0; 239 } 240 /* We'll use the ENGINE's private digest definition */ 241 *ptype = d; 242 /* Store the ENGINE functional reference so we know 243 * 'type' came from an ENGINE and we need to release 244 * it when done. */ 245 ctx->engine = impl; --- 212 unchanged lines hidden --- | 239 return 0; 240 } 241 /* We'll use the ENGINE's private digest definition */ 242 *ptype = d; 243 /* Store the ENGINE functional reference so we know 244 * 'type' came from an ENGINE and we need to release 245 * it when done. */ 246 ctx->engine = impl; --- 212 unchanged lines hidden --- |