new lock for EC_PRE_COMP structures

Submitted by: Nils Larsch
This commit is contained in:
Bodo Möller 2003-02-12 22:01:12 +00:00
parent ba729265a8
commit abd22c9c46
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/* crypto/cryptlib.c */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
* Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -166,7 +166,8 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
"ec",
"ecdh",
"bn",
#if CRYPTO_NUM_LOCKS != 36
"ec_pre_comp",
#if CRYPTO_NUM_LOCKS != 37
# error "Inconsistency between crypto.h and cryptlib.c"
#endif
};

View File

@ -1,6 +1,6 @@
/* crypto/crypto.h */
/* ====================================================================
* Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
* Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -189,7 +189,8 @@ extern "C" {
#define CRYPTO_LOCK_EC 33
#define CRYPTO_LOCK_ECDH 34
#define CRYPTO_LOCK_BN 35
#define CRYPTO_NUM_LOCKS 36
#define CRYPTO_LOCK_EC_PRE_COMP 36
#define CRYPTO_NUM_LOCKS 37
#define CRYPTO_LOCK 1
#define CRYPTO_UNLOCK 2