Lines Matching refs:PK11_SESSION
154 * PK11_SESSION object.
169 * PK11_SESSION structure, either held by a thread or present in free_session
196 PK11_SESSION *pk11_get_session(PK11_OPTYPE optype);
197 void pk11_return_session(PK11_SESSION *sp, PK11_OPTYPE optype);
204 int pk11_destroy_rsa_key_objects(PK11_SESSION *session);
205 int pk11_destroy_rsa_object_pub(PK11_SESSION *sp, CK_BBOOL uselock);
206 int pk11_destroy_rsa_object_priv(PK11_SESSION *sp, CK_BBOOL uselock);
209 int pk11_destroy_dsa_key_objects(PK11_SESSION *session);
210 int pk11_destroy_dsa_object_pub(PK11_SESSION *sp, CK_BBOOL uselock);
211 int pk11_destroy_dsa_object_priv(PK11_SESSION *sp, CK_BBOOL uselock);
214 int pk11_destroy_dh_key_objects(PK11_SESSION *session);
215 int pk11_destroy_dh_object(PK11_SESSION *session, CK_BBOOL uselock);
221 static int pk11_setup_session(PK11_SESSION *sp, PK11_OPTYPE optype);
222 static int pk11_destroy_cipher_key_objects(PK11_SESSION *session);
239 static int pk11_cipher_final(PK11_SESSION *sp);
248 const unsigned char *key, CK_KEY_TYPE key_type, PK11_SESSION *sp);
249 static int check_new_cipher_key(PK11_SESSION *sp, const unsigned char *key,
408 PK11_SESSION *sp;
1416 PK11_SESSION *sp;
1439 PK11_SESSION *sp;
1462 /* Free all BIGNUM structures from PK11_SESSION. */
1463 static void pk11_free_nums(PK11_SESSION *sp, PK11_OPTYPE optype)
1515 * Get new PK11_SESSION structure ready for use. Every process must have
1516 * its own freelist of PK11_SESSION structures so handle fork() here
1518 * The returned PK11_SESSION structure is disconnected from the freelist.
1520 PK11_SESSION *
1523 PK11_SESSION *sp = NULL, *sp1, *freelist;
1548 * with zeroes) PK11_SESSION structure otherwise return first
1553 if ((sp = OPENSSL_malloc(sizeof (PK11_SESSION))) == NULL)
1559 (void) memset(sp, 0, sizeof (PK11_SESSION));
1570 * PK11_SESSION objects.
1641 /* set new head for the list of PK11_SESSION objects */
1655 pk11_return_session(PK11_SESSION *sp, PK11_OPTYPE optype)
1658 PK11_SESSION *freelist;
1725 PK11_SESSION *sp = NULL;
1726 PK11_SESSION *freelist = NULL;
1771 static int pk11_setup_session(PK11_SESSION *sp, PK11_OPTYPE optype)
1864 pk11_destroy_rsa_object_pub(PK11_SESSION *sp, CK_BBOOL uselock)
1891 pk11_destroy_rsa_object_priv(PK11_SESSION *sp, CK_BBOOL uselock)
1916 pk11_destroy_rsa_key_objects(PK11_SESSION *session)
1919 PK11_SESSION *sp = NULL;
1920 PK11_SESSION *local_free_session;
1965 pk11_destroy_dsa_object_pub(PK11_SESSION *sp, CK_BBOOL uselock)
1987 pk11_destroy_dsa_object_priv(PK11_SESSION *sp, CK_BBOOL uselock)
2012 pk11_destroy_dsa_key_objects(PK11_SESSION *session)
2015 PK11_SESSION *sp = NULL;
2016 PK11_SESSION *local_free_session;
2061 pk11_destroy_dh_object(PK11_SESSION *sp, CK_BBOOL uselock)
2088 pk11_destroy_dh_key_objects(PK11_SESSION *session)
2091 PK11_SESSION *sp = NULL;
2092 PK11_SESSION *local_free_session;
2178 PK11_SESSION *sp, CK_MECHANISM_PTR pmech)
2250 PK11_SESSION *sp;
2359 pk11_cipher_final(PK11_SESSION *sp)
2390 PK11_SESSION *sp;
2397 sp = (PK11_SESSION *) state->sp;
2598 const unsigned char *key, CK_KEY_TYPE key_type, PK11_SESSION *sp)
2672 PK11_SESSION *sp;
2868 static int check_new_cipher_key(PK11_SESSION *sp, const unsigned char *key,
2881 static int pk11_destroy_cipher_key_objects(PK11_SESSION *session)
2884 PK11_SESSION *sp = NULL;
2885 PK11_SESSION *local_free_session;