Lines Matching refs:context

577 	if (sess->encr_ctx.context)  in session_mgr_close_session()
578 free(sess->encr_ctx.context); in session_mgr_close_session()
583 if (sess->decr_ctx.context) in session_mgr_close_session()
584 free(sess->decr_ctx.context); in session_mgr_close_session()
589 if (sess->digest_ctx.context.ref) in session_mgr_close_session()
590 free(sess->digest_ctx.context.ref); in session_mgr_close_session()
595 if (sess->sign_ctx.context) in session_mgr_close_session()
596 free(sess->sign_ctx.context); in session_mgr_close_session()
601 if (sess->verify_ctx.context) in session_mgr_close_session()
602 free(sess->verify_ctx.context); in session_mgr_close_session()
654 if (sess->encr_ctx.context) in session_mgr_close_all_sessions()
655 free(sess->encr_ctx.context); in session_mgr_close_all_sessions()
660 if (sess->decr_ctx.context) in session_mgr_close_all_sessions()
661 free(sess->decr_ctx.context); in session_mgr_close_all_sessions()
666 if (sess->digest_ctx.context.ref) in session_mgr_close_all_sessions()
667 free(sess->digest_ctx.context.ref); in session_mgr_close_all_sessions()
672 if (sess->sign_ctx.context) in session_mgr_close_all_sessions()
673 free(sess->sign_ctx.context); in session_mgr_close_all_sessions()
678 if (sess->verify_ctx.context) in session_mgr_close_all_sessions()
679 free(sess->verify_ctx.context); in session_mgr_close_all_sessions()
807 sess->encr_ctx.context, in session_mgr_get_op_state()
848 sess->decr_ctx.context, in session_mgr_get_op_state()
888 sess->digest_ctx.context.ref, in session_mgr_get_op_state()
928 sess->sign_ctx.context, in session_mgr_get_op_state()
968 sess->verify_ctx.context, in session_mgr_get_op_state()
995 CK_BYTE *context = NULL; in session_mgr_set_op_state() local
1033 context = (CK_BYTE *)malloc(ctx->context_len); in session_mgr_set_op_state()
1034 if (! context) { in session_mgr_set_op_state()
1037 (void) memcpy(context, ptr2, ctx->context_len); in session_mgr_set_op_state()
1044 if (context) in session_mgr_set_op_state()
1045 free(context); in session_mgr_set_op_state()
1076 context = (CK_BYTE *)malloc(ctx->context_len); in session_mgr_set_op_state()
1077 if (! context) { in session_mgr_set_op_state()
1080 (void) memcpy(context, ptr2, ctx->context_len); in session_mgr_set_op_state()
1087 if (context) in session_mgr_set_op_state()
1088 free(context); in session_mgr_set_op_state()
1118 context = (CK_BYTE *)malloc(ctx->context_len); in session_mgr_set_op_state()
1119 if (! context) { in session_mgr_set_op_state()
1122 (void) memcpy(context, ptr2, ctx->context_len); in session_mgr_set_op_state()
1129 if (context) in session_mgr_set_op_state()
1130 free(context); in session_mgr_set_op_state()
1165 sess->encr_ctx.context = context; in session_mgr_set_op_state()
1174 sess->decr_ctx.context = context; in session_mgr_set_op_state()
1183 sess->sign_ctx.context = context; in session_mgr_set_op_state()
1192 sess->verify_ctx.context = context; in session_mgr_set_op_state()
1200 sess->digest_ctx.context.ref = context; in session_mgr_set_op_state()