@@ -75,8 +75,8 @@ fn test_parsec_provider_get_param() {
7575 let lib_ctx: LibCtx = LibCtx :: new ( ) . unwrap ( ) ;
7676 let provider: Provider = load_provider ( & lib_ctx, & provider_name, provider_path) ;
7777
78- let mut prov_name: * mut i8 = std:: ptr:: null_mut ( ) ;
79- let mut prov_version: * mut i8 = std:: ptr:: null_mut ( ) ;
78+ let mut prov_name: * mut std :: os :: raw :: c_char = std:: ptr:: null_mut ( ) ;
79+ let mut prov_version: * mut std :: os :: raw :: c_char = std:: ptr:: null_mut ( ) ;
8080 let mut prov_status: i32 = 0 ;
8181 unsafe {
8282 let mut params: [ OSSL_PARAM ; 4 ] =
@@ -85,12 +85,12 @@ fn test_parsec_provider_get_param() {
8585 // Construct the 3 parameters
8686 params[ 0 ] = OSSL_PARAM_construct_utf8_ptr (
8787 openssl_bindings:: OSSL_PROV_PARAM_NAME . as_ptr ( ) as _ ,
88- & mut prov_name,
88+ & mut prov_name as _ ,
8989 0 ,
9090 ) ;
9191 params[ 1 ] = OSSL_PARAM_construct_utf8_ptr (
9292 openssl_bindings:: OSSL_PROV_PARAM_VERSION . as_ptr ( ) as _ ,
93- & mut prov_version,
93+ & mut prov_version as _ ,
9494 0 ,
9595 ) ;
9696 params[ 2 ] = OSSL_PARAM_construct_int (
@@ -116,11 +116,11 @@ fn test_parsec_provider_get_param() {
116116 openssl_returns_1 ( OSSL_PARAM_modified ( & params[ 2 ] as _ ) ) . unwrap ( ) ;
117117
118118 // Verify the returned provider parameters
119- let prov_name = CStr :: from_ptr ( prov_name) ;
119+ let prov_name = CStr :: from_ptr ( prov_name as _ ) ;
120120 let prov_name = prov_name. to_str ( ) . unwrap ( ) ;
121121 assert_eq ! ( prov_name, "Parsec OpenSSL Provider" ) ;
122122
123- let prov_version = CStr :: from_ptr ( prov_version) ;
123+ let prov_version = CStr :: from_ptr ( prov_version as _ ) ;
124124 let prov_version = prov_version. to_str ( ) . unwrap ( ) ;
125125 assert_eq ! ( prov_version, "0.1.0" ) ;
126126 }
0 commit comments