mirror of https://github.com/rwf2/Rocket.git
Update rustdocs to refer to 256-bit keys everywhere.
This commit is contained in:
parent
f29e602164
commit
76135e86c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue