Update rustdocs to refer to 256-bit keys everywhere.

This commit is contained in:
David Wilkening 2018-04-14 22:08:11 +02:00 committed by Sergio Benitez
parent f29e602164
commit 76135e86c9
1 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ impl Config {
/// * **port**: Integer (16-bit unsigned)
/// * **workers**: Integer (16-bit unsigned)
/// * **log**: String
/// * **secret_key**: String (192-bit base64)
/// * **secret_key**: String (256-bit base64)
/// * **tls**: Table (`certs` (path as String), `key` (path as String))
pub(crate) fn set_raw(&mut self, name: &str, val: &Value) -> Result<()> {
let (id, ok) = (|val| val, |_| Ok(()));
@ -385,12 +385,12 @@ impl Config {
self.workers = workers;
}
/// Sets the `secret_key` in `self` to `key` which must be a 192-bit base64
/// Sets the `secret_key` in `self` to `key` which must be a 256-bit base64
/// encoded string.
///
/// # Errors
///
/// If `key` is not a valid 192-bit base64 encoded string, returns a
/// If `key` is not a valid 256-bit base64 encoded string, returns a
/// `BadType` error.
///
/// # Example