ÜberWall

UWfirmforce

/* $Id: x509.c,v 1.1 2010/08/07 21:23:12 khorben Exp $ */
/* Copyright (c) 2010 khorben of Uberwall */
/* 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
* the Free Software Foundation version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdint.h>
#include "plugin.h"
/* x509 */
/* public */
/* variables */
/* magic */
static unsigned char sig1[] = "-----BEGIN CERTIFICATE-----";
static unsigned char sig2[] = "-----END CERTIFICATE-----";
static PluginMagic x509_magic[] =
{
{ 0, 0, sig1, sizeof(sig1)-1 },
{ 0, 0, sig2, sizeof(sig2)-1 },
{ 0, 0, NULL, 0 }
};
/* plugin */
Plugin plugin =
{
PT_DATA,
"X509",
x509_magic,
NULL
};