( cert, key_name, comment )
| 39 | print 'DbgVerify( %s.ParsePEM( "%s", %d ) );' % ( priv_key_var, priv_key, len(priv_key) ) |
| 40 | |
| 41 | def EmitAddCert( cert, key_name, comment ): |
| 42 | #print cert |
| 43 | print '// ' + comment |
| 44 | EmitKey( cert, key_name, comment ) |
| 45 | print '// CA KeyID . . : ' + cert['ca_key_id'] |
| 46 | if cert.get('app_ids'): |
| 47 | print '// Apps . . . . : ' + str( cert['app_ids'] ) |
| 48 | if cert.get('pop_ids'): |
| 49 | print '// POPs . . . . : ' + str( cert['pop_ids'] ) |
| 50 | print 'const uint64 k_key_' + key_name + ' = ' + cert['public_key_id'] + 'ull;' |
| 51 | print 'DbgVerify( CertStore_AddCertFromBase64( "' + cert['cert'] + '", errMsg ) );' |
| 52 | |
| 53 | |
| 54 | # Hardcoded root that matches the project #define |
| 55 | root1 = { |
no test coverage detected