blob: 8a01fd5827e2cf9c020aa70b32e56b4d05bd2674 [file] [log] [blame]
Jeff Thompsonfa306642013-06-17 15:06:57 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Alexander Afanasyev
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
9 */
10
11#include "keychain-pkcs12.h"
12
13namespace ndn {
14
15/////////////////////////////////////////////////////
16// interface to manage certificates and identities //
17/////////////////////////////////////////////////////
18
19Ptr<const Identity>
20KeychainKeystoreOpenssl::getDefaultIdentity ()
21{
22 return Ptr<const Identity> ();
23}
24
25Ptr<const Identity>
26KeychainKeystoreOpenssl::getIdentity (const Name &identityName)
27{
28 return Ptr<const Identity> ();
29}
30
31Ptr<const Identity>
32KeychainKeystoreOpenssl::generateIdentity (const Name &identityName)
33{
34 return Ptr<const Identity> ();
35}
36
37void
38KeychainKeystoreOpenssl::requestIdentityCertificate (const Identity &identity, std::ostream &os)
39{
40}
41
42Ptr<const Certificate>
43KeychainKeystoreOpenssl::issueCertificate (const Identity &identity, std::istream &is)
44{
45 return Ptr<const Certificate> ();
46}
47
48Ptr<const Certificate>
49KeychainKeystoreOpenssl::issueCertificate (std::istream &is)
50{
51 return Ptr<const Certificate> ();
52}
53
54void
55KeychainKeystoreOpenssl::installIdentityCertificate (const Certificate &cert)
56{
57}
58
59/////////////////////////////////////////////////////
60// interface to sign and encrypt data //
61/////////////////////////////////////////////////////
62Ptr<Signature>
63KeychainKeystoreOpenssl::sign (const Identity &identity, const void *buffer, size_t size)
64{
65 return Ptr<Signature> ();
66}
67
68
69} // ndn