root/pykcs11/tags/1.2.0/src/pykcs11string.h
| Revision 48, 1.1 kB (checked in by lrousseau, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | // Copyright (C) 2004 Midori (midori -- a-t -- paipai dot net) |
| 2 | // |
| 3 | // This file is free software; you can redistribute it and/or modify it |
| 4 | // under the terms of the GNU General Public License as published by |
| 5 | // the Free Software Foundation; either version 2 of the License, or |
| 6 | // (at your option) any later version. |
| 7 | // |
| 8 | // This program is distributed in the hope that it will be useful, but |
| 9 | // WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | // General Public License for more details. |
| 12 | // |
| 13 | // You should have received a copy of the GNU General Public License |
| 14 | // along with this program; if not, write to the Free Software |
| 15 | // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 16 | |
| 17 | #pragma once |
| 18 | |
| 19 | #include <vector> |
| 20 | #include <string> |
| 21 | using namespace std; |
| 22 | |
| 23 | typedef struct PyKCS11String |
| 24 | { |
| 25 | PyKCS11String(); |
| 26 | PyKCS11String(unsigned char* pBuf, int len); |
| 27 | PyKCS11String(const char* str); |
| 28 | PyKCS11String(basic_string<char> str); |
| 29 | PyKCS11String(vector<unsigned char> bin_str); |
| 30 | basic_string<char> m_str; |
| 31 | }PyKCS11String; |
| 32 |
Note: See TracBrowser for help on using the browser.
