| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 |
| 15 | #include <openssl/thread.h> |
| 16 |
| 17 |
| 18 | int CRYPTO_num_locks(void) { return 1; } |
| 19 |
| 20 | void CRYPTO_set_locking_callback(void (*func)(int mode, int lock_num, |
| 21 | const char *file, int line)) {} |
| 22 |
| 23 | void (*CRYPTO_get_locking_callback(void))(int mode, int lock_num, |
| 24 | const char *file, int line) { |
| 25 | return NULL; |
| 26 | } |
| 27 |
| 28 | void CRYPTO_set_add_lock_callback(int (*func)(int *num, int mount, int lock_num, |
| 29 | const char *file, int line)) {} |
| 30 |
| 31 | const char *CRYPTO_get_lock_name(int lock_num) { |
| 32 | return "No old-style OpenSSL locks anymore"; |
| 33 | } |
| 34 |
| 35 | int CRYPTO_THREADID_set_callback(void (*func)(CRYPTO_THREADID *)) { return 1; } |
| 36 |
| 37 | void CRYPTO_THREADID_set_numeric(CRYPTO_THREADID *id, unsigned long val) {} |
| 38 |
| 39 | void CRYPTO_THREADID_set_pointer(CRYPTO_THREADID *id, void *ptr) {} |
| 40 |
| 41 | void CRYPTO_THREADID_current(CRYPTO_THREADID *id) {} |
| 42 |
| 43 | void CRYPTO_set_id_callback(unsigned long (*func)(void)) {} |
| 44 |
| 45 | void CRYPTO_set_dynlock_create_callback(struct CRYPTO_dynlock_value *( |
| 46 | *dyn_create_function)(const char *file, int line)) {} |
| 47 |
| 48 | void CRYPTO_set_dynlock_lock_callback(void (*dyn_lock_function)( |
| 49 | int mode, struct CRYPTO_dynlock_value *l, const char *file, int line)) {} |
| 50 |
| 51 | void CRYPTO_set_dynlock_destroy_callback(void (*dyn_destroy_function)( |
| 52 | struct CRYPTO_dynlock_value *l, const char *file, int line)) {} |
| 53 |
| 54 | struct CRYPTO_dynlock_value *(*CRYPTO_get_dynlock_create_callback(void))( |
| 55 | const char *file, int line) { |
| 56 | return NULL; |
| 57 | } |
| 58 |
| 59 | void (*CRYPTO_get_dynlock_lock_callback(void))(int mode, |
| 60 | struct CRYPTO_dynlock_value *l, |
| 61 | const char *file, int line) { |
| 62 | return NULL; |
| 63 | } |
| 64 |
| 65 | void (*CRYPTO_get_dynlock_destroy_callback(void))( |
| 66 | struct CRYPTO_dynlock_value *l, const char *file, int line) { |
| 67 | return NULL; |
| 68 | } |
| 69 |