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

Function EmitKey

tests/make_test_certs.py:32–39  ·  view source on GitHub ↗
( info, key_name, comment )

Source from the content-addressed store, hash-verified

30 return run_cert_tool_with_ca_key( ca_key, args )
31
32def EmitKey( info, key_name, comment ):
33 #print info
34 print '// KeyID . . . .: ' + info['public_key_id']
35 print '// Public key . : ' + info['public_key']
36 priv_key_var = 'privkey_' + key_name;
37 priv_key = compress_whitespace( info['private_key'] )
38 print 'CECSigningPrivateKey %s;' % priv_key_var
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

Callers 1

EmitAddCertFunction · 0.85

Calls 2

compress_whitespaceFunction · 0.85
lenFunction · 0.85

Tested by

no test coverage detected