Commit abd22c9c authored by Bodo Möller's avatar Bodo Möller
Browse files

new lock for EC_PRE_COMP structures

Submitted by: Nils Larsch
parent ba729265
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* 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
	};
+3 −2
Original line number Diff line number Diff line
/* 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