OLD | NEW |
1 /* crypto/crypto.h */ | 1 /* crypto/crypto.h */ |
2 /* ==================================================================== | 2 /* ==================================================================== |
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 /* Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular index | 407 /* Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular index |
408 * (relative to the class type involved) */ | 408 * (relative to the class type involved) */ |
409 int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val); | 409 int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val); |
410 void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad,int idx); | 410 void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad,int idx); |
411 /* This function cleans up all "ex_data" state. It mustn't be called under | 411 /* This function cleans up all "ex_data" state. It mustn't be called under |
412 * potential race-conditions. */ | 412 * potential race-conditions. */ |
413 void CRYPTO_cleanup_all_ex_data(void); | 413 void CRYPTO_cleanup_all_ex_data(void); |
414 | 414 |
415 int CRYPTO_get_new_lockid(char *name); | 415 int CRYPTO_get_new_lockid(char *name); |
416 | 416 |
| 417 /* CRYPTO_set_NEON_capable enables any NEON (ARM vector) dependent code. This |
| 418 * code should be called before any non-init functions. */ |
| 419 void CRYPTO_set_NEON_capable(int on); |
| 420 |
| 421 /* CRYPTO_is_NEON_capable returns the last value given to |
| 422 * CRYPTO_set_NEON_capable, or else zero if it has never been called. */ |
| 423 int CRYPTO_is_NEON_capable(); |
| 424 |
417 int CRYPTO_num_locks(void); /* return CRYPTO_NUM_LOCKS (shared libs!) */ | 425 int CRYPTO_num_locks(void); /* return CRYPTO_NUM_LOCKS (shared libs!) */ |
418 void CRYPTO_lock(int mode, int type,const char *file,int line); | 426 void CRYPTO_lock(int mode, int type,const char *file,int line); |
419 void CRYPTO_set_locking_callback(void (*func)(int mode,int type, | 427 void CRYPTO_set_locking_callback(void (*func)(int mode,int type, |
420 const char *file,int line)); | 428 const char *file,int line)); |
421 void (*CRYPTO_get_locking_callback(void))(int mode,int type,const char *file, | 429 void (*CRYPTO_get_locking_callback(void))(int mode,int type,const char *file, |
422 int line); | 430 int line); |
423 void CRYPTO_set_add_lock_callback(int (*func)(int *num,int mount,int type, | 431 void CRYPTO_set_add_lock_callback(int (*func)(int *num,int mount,int type, |
424 const char *file, int line)); | 432 const char *file, int line)); |
425 int (*CRYPTO_get_add_lock_callback(void))(int *num,int mount,int type, | 433 int (*CRYPTO_get_add_lock_callback(void))(int *num,int mount,int type, |
426 const char *file,int line); | 434 const char *file,int line); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 #define CRYPTO_F_INT_NEW_EX_DATA 108 | 610 #define CRYPTO_F_INT_NEW_EX_DATA 108 |
603 | 611 |
604 /* Reason codes. */ | 612 /* Reason codes. */ |
605 #define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED 101 | 613 #define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED 101 |
606 #define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100 | 614 #define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100 |
607 | 615 |
608 #ifdef __cplusplus | 616 #ifdef __cplusplus |
609 } | 617 } |
610 #endif | 618 #endif |
611 #endif | 619 #endif |
OLD | NEW |