Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file x509write.h |
| 3 | * |
| 4 | * \brief X509 buffer writing functionality |
| 5 | * |
| 6 | * Copyright (C) 2006-2012, Brainspark B.V. |
| 7 | * |
| 8 | * This file is part of PolarSSL (http://www.polarssl.org) |
| 9 | * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> |
| 10 | * |
| 11 | * All rights reserved. |
| 12 | * |
| 13 | * This program is free software; you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by |
| 15 | * the Free Software Foundation; either version 2 of the License, or |
| 16 | * (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License along |
| 24 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 25 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 26 | */ |
| 27 | #ifndef POLARSSL_X509_WRITE_H |
| 28 | #define POLARSSL_X509_WRITE_H |
| 29 | |
| 30 | #include "rsa.h" |
| 31 | |
| 32 | typedef struct _x509_req_name |
| 33 | { |
| 34 | char oid[128]; |
| 35 | char name[128]; |
| 36 | |
| 37 | struct _x509_req_name *next; |
| 38 | } |
| 39 | x509_req_name; |
| 40 | |
| 41 | int x509_write_pubkey_der( unsigned char *buf, size_t size, rsa_context *rsa ); |
| 42 | int x509_write_key_der( unsigned char *buf, size_t size, rsa_context *rsa ); |
| 43 | int x509_write_cert_req( unsigned char *buf, size_t size, rsa_context *rsa, |
Paul Bakker | 3cac5e0 | 2012-02-16 14:08:06 +0000 | [diff] [blame] | 44 | x509_req_name *req_name, int hash_id ); |
Paul Bakker | bdb912d | 2012-02-13 23:11:30 +0000 | [diff] [blame] | 45 | |
| 46 | #endif /* POLARSSL_X509_WRITE_H */ |