summaryrefslogtreecommitdiffstats
path: root/openpgp/src
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-12-13 17:00:21 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-12-14 10:36:27 +0100
commit8379acbea8dff1e94a7bc97727bf337e2f06c444 (patch)
tree2ff9910300c9b41ef61c433b6940ddf7212cd885 /openpgp/src
parentc4efea4e3c8f1d557e51761e80dad9ac55c48942 (diff)
openpgp: Make function pub(crate).
Diffstat (limited to 'openpgp/src')
-rw-r--r--openpgp/src/packet/pkesk.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs
index cd27f18c..7c9847d8 100644
--- a/openpgp/src/packet/pkesk.rs
+++ b/openpgp/src/packet/pkesk.rs
@@ -33,9 +33,9 @@ pub struct PKESK {
impl PKESK {
/// Creates a new PKESK packet.
- pub fn new_(recipient: KeyID, pk_algo: PublicKeyAlgorithm,
- encrypted_session_key: Ciphertext)
- -> Result<PKESK> {
+ pub(crate) fn new_(recipient: KeyID, pk_algo: PublicKeyAlgorithm,
+ encrypted_session_key: Ciphertext)
+ -> Result<PKESK> {
Ok(PKESK {
common: Default::default(),
version: 3,