Jeff Thompson | fa30664 | 2013-06-17 15:06:57 -0700 | [diff] [blame] | 1 | /* -*- 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 | |
| 13 | namespace ndn { |
| 14 | |
| 15 | ///////////////////////////////////////////////////// |
| 16 | // interface to manage certificates and identities // |
| 17 | ///////////////////////////////////////////////////// |
| 18 | |
| 19 | Ptr<const Identity> |
| 20 | KeychainKeystoreOpenssl::getDefaultIdentity () |
| 21 | { |
| 22 | return Ptr<const Identity> (); |
| 23 | } |
| 24 | |
| 25 | Ptr<const Identity> |
| 26 | KeychainKeystoreOpenssl::getIdentity (const Name &identityName) |
| 27 | { |
| 28 | return Ptr<const Identity> (); |
| 29 | } |
| 30 | |
| 31 | Ptr<const Identity> |
| 32 | KeychainKeystoreOpenssl::generateIdentity (const Name &identityName) |
| 33 | { |
| 34 | return Ptr<const Identity> (); |
| 35 | } |
| 36 | |
| 37 | void |
| 38 | KeychainKeystoreOpenssl::requestIdentityCertificate (const Identity &identity, std::ostream &os) |
| 39 | { |
| 40 | } |
| 41 | |
| 42 | Ptr<const Certificate> |
| 43 | KeychainKeystoreOpenssl::issueCertificate (const Identity &identity, std::istream &is) |
| 44 | { |
| 45 | return Ptr<const Certificate> (); |
| 46 | } |
| 47 | |
| 48 | Ptr<const Certificate> |
| 49 | KeychainKeystoreOpenssl::issueCertificate (std::istream &is) |
| 50 | { |
| 51 | return Ptr<const Certificate> (); |
| 52 | } |
| 53 | |
| 54 | void |
| 55 | KeychainKeystoreOpenssl::installIdentityCertificate (const Certificate &cert) |
| 56 | { |
| 57 | } |
| 58 | |
| 59 | ///////////////////////////////////////////////////// |
| 60 | // interface to sign and encrypt data // |
| 61 | ///////////////////////////////////////////////////// |
| 62 | Ptr<Signature> |
| 63 | KeychainKeystoreOpenssl::sign (const Identity &identity, const void *buffer, size_t size) |
| 64 | { |
| 65 | return Ptr<Signature> (); |
| 66 | } |
| 67 | |
| 68 | |
| 69 | } // ndn |