diff options
author | Job Snijders <job@cvs.openbsd.org> | 2024-03-22 03:38:13 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2024-03-22 03:38:13 +0000 |
commit | ca99ddc00ae293d3d1a35b7fbcdb8200440d788b (patch) | |
tree | ece24d2e8a33e59ffbe9e512d7665b737e55064f /usr.sbin/rpki-client/extern.h | |
parent | b477caf1aa0002822f1ad3071cd5c5ce7d12f380 (diff) |
Replace protocol literal strings and strlen() calls with defined constants
OK tb@ claudio@
Diffstat (limited to 'usr.sbin/rpki-client/extern.h')
-rw-r--r-- | usr.sbin/rpki-client/extern.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/extern.h b/usr.sbin/rpki-client/extern.h index 142c26e5260..d89c352e44b 100644 --- a/usr.sbin/rpki-client/extern.h +++ b/usr.sbin/rpki-client/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.212 2024/03/19 05:04:13 tb Exp $ */ +/* $OpenBSD: extern.h,v 1.213 2024/03/22 03:38:12 job Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -1015,4 +1015,11 @@ int mkpathat(int, const char *); /* Maximum number of delegated hosting locations (repositories) for each TAL. */ #define MAX_REPO_PER_TAL 1000 +#define HTTP_PROTO "http://" +#define HTTP_PROTO_LEN (sizeof(HTTP_PROTO) - 1) +#define HTTPS_PROTO "https://" +#define HTTPS_PROTO_LEN (sizeof(HTTPS_PROTO) - 1) +#define RSYNC_PROTO "rsync://" +#define RSYNC_PROTO_LEN (sizeof(RSYNC_PROTO) - 1) + #endif /* ! EXTERN_H */ |