mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 03:50:57 +01:00
unfortunately my tab/spc config was wrong for a couple of years. fixed all tabs=>spaces+re-indent
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
This file is part of Pretty Curved Privacy (pcp1).
|
||||
|
||||
Copyright (C) 2013 T.Linden.
|
||||
Copyright (C) 2013-2016 T.v.Dein.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -41,12 +41,12 @@ namespace pcp {
|
||||
std::string msg;
|
||||
PCPCTX *ptx = P->ptx;
|
||||
if(ptx->pcp_errset == 1) {
|
||||
msg = ptx->pcp_err;
|
||||
msg = ptx->pcp_err;
|
||||
}
|
||||
if(errno) {
|
||||
msg += std::string("\nError: ")
|
||||
+ std::string(strerror(errno))
|
||||
+ std::string("\n");
|
||||
msg += std::string("\nError: ")
|
||||
+ std::string(strerror(errno))
|
||||
+ std::string("\n");
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
This file is part of Pretty Curved Privacy (pcp1).
|
||||
|
||||
Copyright (C) 2013 T.Linden.
|
||||
Copyright (C) 2013-2016 T.v.Dein.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -83,8 +83,8 @@ namespace pcp {
|
||||
Key(PcpContext *P, bool generate);
|
||||
Key(PcpContext *P, const std::string& passphrase);
|
||||
Key(PcpContext *P, const std::string& passphrase,
|
||||
const std::string& owner,
|
||||
const std::string& mail);
|
||||
const std::string& owner,
|
||||
const std::string& mail);
|
||||
Key(PcpContext *P, pcp_key_t *k);
|
||||
Key(PcpContext *P, pcp_key_t *k, bool store);
|
||||
Key(PcpContext *P, std::string &z85encoded, std::string& passphrase);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
This file is part of Pretty Curved Privacy (pcp1).
|
||||
|
||||
Copyright (C) 2013 T.Linden.
|
||||
Copyright (C) 2013-2016 T.v.Dein.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -53,8 +53,8 @@ Key::Key(PcpContext *P, const string& passphrase) {
|
||||
}
|
||||
|
||||
Key::Key(PcpContext *P, const string& passphrase,
|
||||
const string& owner,
|
||||
const string& mail) {
|
||||
const string& owner,
|
||||
const string& mail) {
|
||||
stored = false;
|
||||
pcp_key_t *_K = pcpkey_new();
|
||||
K = pcpkey_encrypt(P->ptx, _K, (char *)passphrase.c_str());
|
||||
|
||||
Reference in New Issue
Block a user