rl.h 768 Bytes
#ifndef __BB_SK_RL_HDR__
#define __BB_SK_RL_HDR__

/* utility functions for managing and verifying certs */

#include <PR/bbcert.h>
#include "skerror.h"
#include "util.h"

#define RL_EXISTS(__rlbundle) ((__rlbundle).head != 0)

int rlPtrsValid(BbAppLaunchCrls *crls);

/* if tsrlVersion is -1, ignore tsrl */
int validateRls(BbCrlBundle *carl, int carlVersion, 
                BbCrlBundle *cprl, int cprlVersion,
                BbCrlBundle *tsrl, int tsrlVersion);

int ticketBundleRevoked(BbTicketBundle *ticketBundle, 
                        BbAppLaunchCrls *crls);

/* NOTE: don't use crls->tsrl here. */
int sysappBundleRevoked(BbContentMetaDataHead *cmdh,
                        BbCertBase **cmdChain,
                        BbAppLaunchCrls *crls);


#endif