xftp: add basic auth (#653)

This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2023-02-24 17:40:26 +04:00
1 parent 202922bceb
commit 8c8a984c1c
7 files changed
+94 -49

No files matched your search

+1 -1
View File
@@ -87,6 +87,6 @@ newXFTPServerEnv config@XFTPServerConfig {storeLogFile, fileSizeQuota, caCertifi
pure XFTPEnv {config, store, storeLog, idsDrg, tlsServerParams, serverIdentity = C.KeyHash fp, serverStats}
data XFTPRequest
= XFTPReqNew FileInfo (NonEmpty RcvPublicVerifyKey)
= XFTPReqNew FileInfo (NonEmpty RcvPublicVerifyKey) (Maybe BasicAuth)
| XFTPReqCmd XFTPFileId FileRec FileCmd
| XFTPReqPing