Skip to content

Commit

Permalink
ci: Add cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Gowtham Suresh Kumar <[email protected]>
  • Loading branch information
gowthamsk-arm committed Feb 22, 2024
1 parent ec17350 commit e5590d0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 7 additions & 5 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ test_string='Providers:
version: 0.1.0
status: active'

if [[ $test_string == $provider_load_result ]]; then
echo "Parsec OpenSSL Provider loaded successfully!!!!"
exit 0;
if [[ $test_string != $provider_load_result ]]; then
echo "Loaded Provider has unexpected parameters!!!!"
fi

echo "Loaded Provider has unexpected parameters!!!!"
exit 1
echo "Parsec OpenSSL Provider loaded successfully!!!!"

if cargo fmt --version; then
cargo fmt --all -- --check
fi
9 changes: 4 additions & 5 deletions parsec-openssl-provider-shared/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Copyright 2023 Contributors to the Parsec project.
// SPDX-License-Identifier: Apache-2.0

use parsec_openssl_provider::{
openssl_errors, parsec_provider_provider_init,
};
use parsec_openssl_provider::{openssl_errors, parsec_provider_provider_init};

use parsec_openssl_provider::parsec_openssl2::{OPENSSL_SUCCESS,OPENSSL_ERROR};
use parsec_openssl_provider::parsec_openssl2::types::VOID_PTR_PTR;
use parsec_openssl_provider::parsec_openssl2::openssl_binding::{OSSL_CORE_HANDLE, OSSL_DISPATCH};
use parsec_openssl_provider::parsec_openssl2::types::VOID_PTR_PTR;
use parsec_openssl_provider::parsec_openssl2::{OPENSSL_ERROR, OPENSSL_SUCCESS};

mod catch;
use catch::r#catch;

Expand Down
5 changes: 2 additions & 3 deletions parsec-openssl-provider/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ use parsec_openssl2::{
OPENSSL_SUCCESS, OSSL_PROVIDER,
};

use crate::openssl_binding::{
OSSL_ALGORITHM, OSSL_PARAM, OSSL_PARAM_INTEGER, OSSL_PARAM_UTF8_PTR,
};
use crate::openssl_binding::{OSSL_ALGORITHM, OSSL_PARAM, OSSL_PARAM_INTEGER, OSSL_PARAM_UTF8_PTR};

// Parsec provider parameters
pub const PARSEC_PROVIDER_NAME: &[u8; 24] = b"Parsec OpenSSL Provider\0";
pub const PARSEC_PROVIDER_VERSION: &[u8; 6] = b"0.1.0\0";
Expand Down

0 comments on commit e5590d0

Please sign in to comment.