summaryrefslogtreecommitdiffhomepage
path: root/mullvad-management-interface/src
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2024-04-16 12:42:24 +0200
committerEmīls <emils@mullvad.net>2024-04-18 11:56:21 +0200
commit6719c48ffaf894dc88678dbb209f11bca9dffd2a (patch)
treef27154e6d8db851250fa4b2ec61c7a12f0ee18c7 /mullvad-management-interface/src
parentd1403674eca97e498c3fd04d1c0db24a1935da47 (diff)
downloadmullvadvpn-6719c48ffaf894dc88678dbb209f11bca9dffd2a.tar.xz
mullvadvpn-6719c48ffaf894dc88678dbb209f11bca9dffd2a.zip
Limit the size of custom list names to 30 graphemes
Diffstat (limited to 'mullvad-management-interface/src')
-rw-r--r--mullvad-management-interface/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mullvad-management-interface/src/lib.rs b/mullvad-management-interface/src/lib.rs
index 882db86ae1..763d2474ec 100644
--- a/mullvad-management-interface/src/lib.rs
+++ b/mullvad-management-interface/src/lib.rs
@@ -28,6 +28,7 @@ static MULLVAD_MANAGEMENT_SOCKET_GROUP: Lazy<Option<String>> =
pub const CUSTOM_LIST_LIST_NOT_FOUND_DETAILS: &[u8] = b"custom_list_list_not_found";
pub const CUSTOM_LIST_LIST_EXISTS_DETAILS: &[u8] = b"custom_list_list_exists";
+pub const CUSTOM_LIST_LIST_NAME_TOO_LONG_DETAILS: &[u8] = b"custom_list_list_name_too_long";
#[derive(thiserror::Error, Debug)]
pub enum Error {