Remove unsafe impl Sync for RSAKeyPair {}.

This commit is contained in:
Brian Smith 2018-05-07 13:58:22 -10:00
parent fbb3d6b5f3
commit a31c1e6efb

View File

@ -39,10 +39,6 @@ pub struct RSAKeyPair {
n_bits: bits::BitLength,
}
// `RSAKeyPair` is immutable. TODO: Make all the elements of `RSAKeyPair`
// implement `Sync` so that it doesn't have to do this itself.
unsafe impl Sync for RSAKeyPair {}
impl RSAKeyPair {
/// Parses an unencrypted PKCS#8-encoded RSA private key.
///