Open exFalso opened 1 year ago
0.8.3
no.
tonic
This line https://github.com/hyperium/tonic/blob/555a8bcf422b6c32ccda78834ec781f8b6f0e564/tonic/src/transport/tls.rs#L21 does an unnecessary copy of the certificate, which in the case of multi-pem root stores may be large. Suggest adding a from_pem_vec-style function that takes ownership of a Vec<u8> instead.
from_pem_vec
Vec<u8>
Same issue with tonic::transport::Identity
tonic::transport::Identity
We could add From<Vec<u8>> I would be ok with merging that
From<Vec<u8>>
Identity takes two Vecs, so added a separate function for that
Identity
Version
0.8.3
Platform
no.
Crates
tonic
Description
This line https://github.com/hyperium/tonic/blob/555a8bcf422b6c32ccda78834ec781f8b6f0e564/tonic/src/transport/tls.rs#L21 does an unnecessary copy of the certificate, which in the case of multi-pem root stores may be large. Suggest adding a
from_pem_vec
-style function that takes ownership of aVec<u8>
instead.