QtPass
2.0.0
Developer documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
sshauthsock.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2014 Anne Jan Brouwer
2
// SPDX-License-Identifier: GPL-3.0-or-later
8
#ifndef SRC_SSHAUTHSOCK_H_
9
#define SRC_SSHAUTHSOCK_H_
10
11
#include <QString>
12
#include <cstdint>
13
23
class
SshAuthSock {
24
public
:
33
enum class
OverrideStatus
: std::uint8_t {
34
Valid,
35
DoesNotExist,
36
NotReadable,
38
NotUnixDomainSocket,
39
};
40
46
static
auto
overrideStatus
(
const
QString &path) ->
OverrideStatus
;
47
76
static
void
initialise
(
const
QString &
override
= {});
77
78
private
:
79
SshAuthSock() =
default
;
80
};
81
82
#endif
// SRC_SSHAUTHSOCK_H_
SshAuthSock::OverrideStatus
OverrideStatus
Classify a non-empty SSH_AUTH_SOCK override path supplied by the user.
Definition
sshauthsock.h:33
SshAuthSock::overrideStatus
static auto overrideStatus(const QString &path) -> OverrideStatus
Validate an SSH_AUTH_SOCK override path. Caller is expected to skip validation when the input is empt...
Definition
sshauthsock.cpp:84
SshAuthSock::initialise
static void initialise(const QString &override={})
Ensure SSH_AUTH_SOCK is set for child processes.
Definition
sshauthsock.cpp:110
src
sshauthsock.h
Generated by
1.18.0