Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33101795
session-p.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
session-p.hpp
View Options
/*
* This file is part of libkazv.
* SPDX-FileCopyrightText: 2021-2024 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include
<libkazv-config.hpp>
#include
"session.hpp"
#include
<vodozemac.h>
namespace
Kazv
{
struct
SessionPrivate
{
SessionPrivate
();
SessionPrivate
(
OutboundSessionTag
,
RandomTag
,
RandomData
data
,
CryptoPrivate
&
cryptoD
,
std
::
string
theirIdentityKey
,
std
::
string
theirOneTimeKey
);
SessionPrivate
(
InboundSessionTag
,
CryptoPrivate
&
cryptoD
,
std
::
string
theirIdentityKey
,
std
::
string
message
);
SessionPrivate
(
const
SessionPrivate
&
that
);
~
SessionPrivate
()
=
default
;
std
::
optional
<
rust
::
Box
<
vodozemac
::
olm
::
Session
>>
session
;
bool
valid
{
false
};
std
::
optional
<
std
::
string
>
firstDecrypted
;
std
::
string
pickle
()
const
;
bool
unpickle
(
std
::
string
data
);
bool
unpickleFromLibolm
(
std
::
string
data
);
MaybeString
takeFirstDecrypted
();
};
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jan 20, 1:00 PM (11 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973299
Default Alt Text
session-p.hpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment