Blame SOURCES/keyutil.h

9fa50b
/*
9fa50b
   Copyright 2005 Red Hat, Inc.
9fa50b
9fa50b
   This program is free software; you can redistribute it and/or modify
9fa50b
   it under the terms of the GNU General Public License as published by
9fa50b
   the Free Software Foundation; either version 2 of the License, or
9fa50b
   (at your option) any later version.
9fa50b
  
9fa50b
   This program is distributed in the hope that it will be useful,
9fa50b
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9fa50b
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9fa50b
   GNU General Public License for more details.
9fa50b
  
9fa50b
   You should have received a copy of the GNU General Public License
9fa50b
   along with this program; if not, write to the Free Software
9fa50b
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
9fa50b
   
9fa50b
   In addition, as a special exception, Red Hat, Inc. gives permission
9fa50b
   to link the code of this program with the OpenSSL library (or with
9fa50b
   modified versions of OpenSSL that use the same license as OpenSSL),
9fa50b
   and distribute linked combinations including the two. You must obey
9fa50b
   the GNU General Public License in all respects for all of the code
9fa50b
   used other than OpenSSL. If you modify this file, you may extend
9fa50b
   this exception to your version of the file, but you are not
9fa50b
   obligated to do so. If you do not wish to do so, delete this
9fa50b
   exception statement from your version.
9fa50b
9fa50b
*/
9fa50b
9fa50b
/* ***** BEGIN LICENSE BLOCK *****
9fa50b
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
9fa50b
 *
9fa50b
 * The contents of this file are subject to the Mozilla Public License Version
9fa50b
 * 1.1 (the "License"); you may not use this file except in compliance with
9fa50b
 * the License. You may obtain a copy of the License at
9fa50b
 * http://www.mozilla.org/MPL/
9fa50b
 *
9fa50b
 * Software distributed under the License is distributed on an "AS IS" basis,
9fa50b
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
9fa50b
 * for the specific language governing rights and limitations under the
9fa50b
 * License.
9fa50b
 *
9fa50b
 * The Original Code is the Netscape security libraries.
9fa50b
 *
9fa50b
 * The Initial Developer of the Original Code is
9fa50b
 * Netscape Communications Corporation.
9fa50b
 * Portions created by the Initial Developer are Copyright (C) 1994-2000
9fa50b
 * the Initial Developer. All Rights Reserved.
9fa50b
 *
9fa50b
 * Contributor(s):
9fa50b
 *   Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
9fa50b
 *
9fa50b
 * Alternatively, the contents of this file may be used under the terms of
9fa50b
 * either the GNU General Public License Version 2 or later (the "GPL"), or
9fa50b
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
9fa50b
 * in which case the provisions of the GPL or the LGPL are applicable instead
9fa50b
 * of those above. If you wish to allow use of your version of this file only
9fa50b
 * under the terms of either the GPL or the LGPL, and not to allow others to
9fa50b
 * use your version of this file under the terms of the MPL, indicate your
9fa50b
 * decision by deleting the provisions above and replace them with the notice
9fa50b
 * and other provisions required by the GPL or the LGPL. If you do not delete
9fa50b
 * the provisions above, a recipient may use your version of this file under
9fa50b
 * the terms of any one of the MPL, the GPL or the LGPL.
9fa50b
 *
9fa50b
 * ***** END LICENSE BLOCK ***** */
9fa50b
9fa50b
#ifndef _KEYUTIL_H
9fa50b
#define _KEYUTIL_H
9fa50b
9fa50b
#include "secutil.h"
9fa50b
9fa50b
extern char *progName;
9fa50b
9fa50b
enum certutilExtns {
9fa50b
    ext_keyUsage = 0,
9fa50b
    ext_basicConstraint,
9fa50b
    ext_authorityKeyID,
9fa50b
    ext_CRLDistPts,
9fa50b
    ext_NSCertType,
9fa50b
    ext_extKeyUsage,
9fa50b
    ext_authInfoAcc,
9fa50b
    ext_subjInfoAcc,
9fa50b
    ext_certPolicies,
9fa50b
    ext_policyMappings,
9fa50b
    ext_policyConstr,
9fa50b
    ext_inhibitAnyPolicy,
9fa50b
    ext_subjectKeyID,
9fa50b
    ext_End
9fa50b
};
9fa50b
9fa50b
typedef PRBool certutilExtnList[ext_End];
9fa50b
9fa50b
extern SECStatus
9fa50b
AddExtensions(void *extHandle, const char *emailAddrs, const char *dnsNames,
9fa50b
              certutilExtnList extList);
9fa50b
9fa50b
#endif  /* _KEYUTIL_H */
9fa50b