MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / EmitAddCert

Function EmitAddCert

tests/make_test_certs.py:41–52  ·  view source on GitHub ↗
( cert, key_name, comment )

Source from the content-addressed store, hash-verified

39 print 'DbgVerify( %s.ParsePEM( "%s", %d ) );' % ( priv_key_var, priv_key, len(priv_key) )
40
41def 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 print
53
54# Hardcoded root that matches the project #define
55root1 = {

Callers 1

make_test_certs.pyFile · 0.85

Calls 1

EmitKeyFunction · 0.85

Tested by

no test coverage detected