ecs_lib.c (167613) | ecs_lib.c (215697) |
---|---|
1/* crypto/ecdsa/ecs_lib.c */ 2/* ==================================================================== 3 * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 69 unchanged lines hidden (view full) --- 78{ 79 if(!default_ECDSA_method) 80 default_ECDSA_method = ECDSA_OpenSSL(); 81 return default_ECDSA_method; 82} 83 84int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) 85{ | 1/* crypto/ecdsa/ecs_lib.c */ 2/* ==================================================================== 3 * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 69 unchanged lines hidden (view full) --- 78{ 79 if(!default_ECDSA_method) 80 default_ECDSA_method = ECDSA_OpenSSL(); 81 return default_ECDSA_method; 82} 83 84int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth) 85{ |
86 const ECDSA_METHOD *mtmp; | |
87 ECDSA_DATA *ecdsa; 88 89 ecdsa = ecdsa_check(eckey); 90 91 if (ecdsa == NULL) 92 return 0; 93 | 86 ECDSA_DATA *ecdsa; 87 88 ecdsa = ecdsa_check(eckey); 89 90 if (ecdsa == NULL) 91 return 0; 92 |
94 mtmp = ecdsa->meth; | |
95#ifndef OPENSSL_NO_ENGINE 96 if (ecdsa->engine) 97 { 98 ENGINE_finish(ecdsa->engine); 99 ecdsa->engine = NULL; 100 } 101#endif 102 ecdsa->meth = meth; --- 159 unchanged lines hidden --- | 93#ifndef OPENSSL_NO_ENGINE 94 if (ecdsa->engine) 95 { 96 ENGINE_finish(ecdsa->engine); 97 ecdsa->engine = NULL; 98 } 99#endif 100 ecdsa->meth = meth; --- 159 unchanged lines hidden --- |