c2pa-crypto 0.7.1

Cryptography internals for c2pa-rs crate
Documentation
// Copyright 2024 Adobe. All rights reserved.
// This file is licensed to you under the Apache License,
// Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
// or the MIT license (http://opensource.org/licenses/MIT),
// at your option.

// Unless required by applicable law or agreed to in writing,
// this software is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
// implied. See the LICENSE-MIT and LICENSE-APACHE files for the
// specific language governing permissions and limitations under
// each license.

use crate::raw_signature::openssl::OpenSslMutexUnavailable;

#[test]
fn impl_display() {
    let err = OpenSslMutexUnavailable {};
    assert_eq!(
        err.to_string(),
        "Unable to acquire OpenSSL native code mutex"
    );
}

#[test]
fn impl_debug() {
    let err = OpenSslMutexUnavailable {};
    assert_eq!(format!("{err:?}"), "OpenSslMutexUnavailable");
}