/*---------------------------------------------------------------------------*
  Project:  Revolution SSL library
  File:     ssl.h

  Copyright (C) 2006 Nintendo All rights reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., and are protected by Federal copyright law.  They may
  not be disclosed to third parties or copied or duplicated in any form,
  in whole or in part, without the prior written consent of Nintendo.
 *---------------------------------------------------------------------------*/

#ifndef	__SSL_H__
#define	__SSL_H__

#ifdef	__cplusplus
extern "C" {
#endif	// __cplusplus

#define SSL_VERIFY_NONE                         0x00
#define SSL_VERIFY_COMMON_NAME                  0x01
#define SSL_VERIFY_ROOT_CA                      0x02
#define SSL_VERIFY_DATE                         0x04
#define SSL_VERIFY_CHAIN                        0x08
#define SSL_VERIFY_SUBJECT_ALT_NAME             0x10
#define SSL_VERIFY_OPTION_SESSION_CACHE         0x100
   
#define SSL_ENONE                               0
#define SSL_EFAILED                             -1
#define SSL_EWANT_READ                          -2
#define SSL_EWANT_WRITE                         -3
#define SSL_ESYSCALL                            -5
#define SSL_EZERO_RETURN                        -6
#define SSL_EWANT_CONNECT                       -7
#define SSL_ESSLID                              -8
#define SSL_EVERIFY_COMMON_NAME                 -9
#define SSL_EVERIFY_ROOT_CA                     -10
#define SSL_EVERIFY_CHAIN                       -11
#define SSL_EVERIFY_DATE                        -12
#define SSL_EGET_SERVER_CERT                    -13
#define SSL_EROOTCAID                           -14
#define SSL_ECLIENTCERTID                       -15
#define SSL_EVERIFY_REVOKED_CERT                -16
 
#define SSL_ROOTCA_NINTENDO_0                   0
#define SSL_CLIENTCERT_NINTENDO_0               0
   
typedef int  SSLId;
    
#ifdef	__cplusplus
}
#endif	// __cplusplus
#endif	// __SSL_H__
