144144const char * engine_qat_id = STR (QAT_ENGINE_ID );
145145#if defined(QAT_HW ) && defined(QAT_SW )
146146const char * engine_qat_name =
147- "Reference implementation of QAT crypto engine(qat_hw & qat_sw) v0.6.12 " ;
147+ "Reference implementation of QAT crypto engine(qat_hw & qat_sw) v0.6.13 " ;
148148#elif QAT_HW
149149const char * engine_qat_name =
150- "Reference implementation of QAT crypto engine(qat_hw) v0.6.12 " ;
150+ "Reference implementation of QAT crypto engine(qat_hw) v0.6.13 " ;
151151#else
152152const char * engine_qat_name =
153- "Reference implementation of QAT crypto engine(qat_sw) v0.6.12 " ;
153+ "Reference implementation of QAT crypto engine(qat_sw) v0.6.13 " ;
154154#endif
155155unsigned int engine_inited = 0 ;
156156
@@ -421,15 +421,15 @@ int hw_support(void) {
421421 vpclmulqdq = 1 ;
422422
423423 DEBUG ("Processor Support - AVX512F = %u, VAES = %u, VPCLMULQDQ = %u\n" ,
424- avx512f , vaes , vpclmulqdq );
424+ avx512f , vaes , vpclmulqdq );
425425
426426 if (avx512f && vaes && vpclmulqdq ) {
427427 qat_sw_ipsec = 1 ;
428428 return 1 ;
429429 } else {
430- WARN ( "Processor unsupported - AVX512F = %u, VAES = %u, VPCLMULQDQ = %u\n" ,
431- avx512f , vaes , vpclmulqdq );
432- return 0 ;
430+ fprintf ( stderr , "Processor unsupported for QAT_SW - AVX512F = %u, VAES = %u, VPCLMULQDQ = %u\n" ,
431+ avx512f , vaes , vpclmulqdq );
432+ return 0 ;
433433 }
434434}
435435#endif
@@ -468,7 +468,7 @@ int qat_engine_init(ENGINE *e)
468468#ifdef QAT_HW
469469 if (qat_hw_offload ) {
470470 if (!qat_init (e )) {
471- WARN ( "QAT initialization Failed\n" );
471+ fprintf ( stderr , "QAT_HW initialization Failed\n" );
472472 return 0 ;
473473 }
474474 }
@@ -477,7 +477,7 @@ int qat_engine_init(ENGINE *e)
477477#ifdef QAT_SW
478478 if (qat_sw_offload ) {
479479 if (!multibuff_init (e )) {
480- WARN ( "Multibuff initialization Failed\n" );
480+ fprintf ( stderr , "QAT_SW initialization Failed\n" );
481481 return 0 ;
482482 }
483483 }
@@ -858,21 +858,21 @@ static int bind_qat(ENGINE *e, const char *id)
858858 if (icp_sal_userIsQatAvailable () == CPA_TRUE ) {
859859 qat_hw_offload = 1 ;
860860 } else {
861- WARN ("Qat Intree device not available\n" );
862861# ifndef QAT_SW
862+ fprintf (stderr , "Qat Intree device not available\n" );
863863 goto end ;
864864# endif
865865 }
866866# else
867867 if (access (QAT_DEV , F_OK ) == 0 ) {
868868 qat_hw_offload = 1 ;
869869 if (access (QAT_MEM_DEV , F_OK ) != 0 ) {
870- WARN ( "Qat memory driver not present\n" );
870+ fprintf ( stderr , "Qat memory driver not present\n" );
871871 goto end ;
872872 }
873873 } else {
874- WARN ("Qat device not available\n" );
875874# ifndef QAT_SW
875+ fprintf (stderr , "Qat device not available\n" );
876876 goto end ;
877877# endif
878878 }
@@ -885,12 +885,12 @@ static int bind_qat(ENGINE *e, const char *id)
885885 }
886886
887887 if (!ENGINE_set_id (e , engine_qat_id )) {
888- WARN ( "ENGINE_set_id failed\n" );
888+ fprintf ( stderr , "ENGINE_set_id failed\n" );
889889 goto end ;
890890 }
891891
892892 if (!ENGINE_set_name (e , engine_qat_name )) {
893- WARN ( "ENGINE_set_name failed\n" );
893+ fprintf ( stderr , "ENGINE_set_name failed\n" );
894894 goto end ;
895895 }
896896
@@ -965,7 +965,7 @@ static int bind_qat(ENGINE *e, const char *id)
965965 if (hw_support ()) {
966966# ifdef ENABLE_QAT_SW_GCM
967967 if (!vaesgcm_init_ipsec_mb_mgr ()) {
968- WARN ( "IPSec Multi-Buffer Manager Initialization failed\n" );
968+ fprintf ( stderr , "IPSec Multi-Buffer Manager Initialization failed\n" );
969969 goto end ;
970970 }
971971# endif
@@ -1000,7 +1000,7 @@ static int bind_qat(ENGINE *e, const char *id)
10001000 ret &= ENGINE_set_finish_function (e , qat_engine_finish );
10011001 ret &= ENGINE_set_cmd_defns (e , qat_cmd_defns );
10021002 if (ret == 0 ) {
1003- WARN ( "Engine failed to register init, finish or destroy functions\n" );
1003+ fprintf ( stderr , "Engine failed to register init, finish or destroy functions\n" );
10041004 }
10051005
10061006 /*
@@ -1046,13 +1046,13 @@ static ENGINE *engine_qat(void)
10461046 ret = ENGINE_new ();
10471047
10481048 if (!ret ) {
1049- WARN ( "Failed to create Engine\n" );
1049+ fprintf ( stderr , "Failed to create Engine\n" );
10501050 QATerr (QAT_F_ENGINE_QAT , QAT_R_QAT_CREATE_ENGINE_FAILURE );
10511051 return NULL ;
10521052 }
10531053
10541054 if (!bind_qat (ret , engine_qat_id )) {
1055- WARN ( "Qat engine bind failed\n" );
1055+ fprintf ( stderr , "Qat Engine bind failed\n" );
10561056 ENGINE_free (ret );
10571057 return NULL ;
10581058 }
0 commit comments