/*
 * <insert one-line description of what the program does>
 * Copyright (c) <2008-2009>, Intel Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU Lesser General Public License,
 * version 2.1, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
 * more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 *

File Name:          ConnMgmt.h 

Description:

    This file describe the exposure interface of ConnMgmt module

Environment (opt):

    OS: metasys/mandriva

    SE: gcc

 

Notes (opt):

 

  =====================================================================

  Revision   Revision History                   Date

  =====================================================================

  0.1        Create                                 2006-8-15 

  =====================================================================

 

****************************************************************************/
#include "BootCert.h"

#ifndef _ConnMgmt_
#define _ConnMgmt_

//typedef struct CurrentState_struct{int a;}CurrentState; //will be removed
int ConnMgmt_StartListen();
int ConnMgmt_DownloadBootCert(BootCert * pBootCert);
int ConnMgmt_HTTPDownload(BootCert * pBootCert,int nCertkind,unsigned char *ServerPKCert, unsigned char *IntelPKCert);
int ConnMgmt_DownloadSpecialBootCert(BootCert * pBootCert);
//int ConnMgmt_GetCurrentState(CurrentState * pCurrentState);  
int ConnMgmt_SendSharedSecretUpdateSuccess();
int ConnMgmt_SendSpecialCertUpdateSuccess();  
int ParseHttpPacket(unsigned char* bzData,  int bzdata_length,BootCert * pBootCert,unsigned char *ServerPKCert, unsigned char *IntelPKCert);

#endif
