summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-06-03 15:38:08 -0400
committerGreg Hudson <ghudson@mit.edu>2013-06-03 15:38:08 -0400
commit1c344d6b8eece18fa4d96a81707e1d406d776270 (patch)
tree72387d05114a08b0de47e6eac7d2016b3e6477f8 /src/tests
parent3b1b31a57cd932eda928932e67f5f2857929f429 (diff)
downloadkrb5-1c344d6b8eece18fa4d96a81707e1d406d776270.tar.gz
krb5-1c344d6b8eece18fa4d96a81707e1d406d776270.tar.xz
krb5-1c344d6b8eece18fa4d96a81707e1d406d776270.zip
Untabify and reindent t_authpkinit.py
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/t_authpkinit.py33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/tests/t_authpkinit.py b/src/tests/t_authpkinit.py
index 76cea393fe..fdb3216d33 100644
--- a/src/tests/t_authpkinit.py
+++ b/src/tests/t_authpkinit.py
@@ -117,24 +117,23 @@ realm.run([kvno, realm.host_princ])
realm.stop()
if have_soft_pkcs11:
- os.environ['SOFTPKCS11RC'] = os.path.join(os.getcwd(), 'testdir',
- 'soft-pkcs11.rc')
+ os.environ['SOFTPKCS11RC'] = os.path.join(os.getcwd(), 'testdir',
+ 'soft-pkcs11.rc')
- # PKINIT with PKCS11: identity, with a PIN supplied by the prompter.
- realm = K5Realm(krb5_conf=pkinit_krb5_conf, kdc_conf=pkinit_kdc_conf,
- get_creds=False)
- conf = open(os.environ['SOFTPKCS11RC'], 'w')
- conf.write("%s\t%s\t%s\t%s\n" % ('user', 'user token', user_pem,
- privkey_enc_pem))
- conf.close()
- realm.kinit('user@%s' % realm.realm,
- flags=['-X', 'X509_user_identity=%s' % p11_identity],
- password='encrypted')
- realm.klist('user@%s' % realm.realm)
- realm.run([kvno, realm.host_princ])
- realm.stop()
+ # PKINIT with PKCS11: identity, with a PIN supplied by the prompter.
+ realm = K5Realm(krb5_conf=pkinit_krb5_conf, kdc_conf=pkinit_kdc_conf,
+ get_creds=False)
+ conf = open(os.environ['SOFTPKCS11RC'], 'w')
+ conf.write("%s\t%s\t%s\t%s\n" % ('user', 'user token', user_pem,
+ privkey_enc_pem))
+ conf.close()
+ realm.kinit('user@%s' % realm.realm,
+ flags=['-X', 'X509_user_identity=%s' % p11_identity],
+ password='encrypted')
+ realm.klist('user@%s' % realm.realm)
+ realm.run([kvno, realm.host_princ])
+ realm.stop()
else:
- output('soft-pkcs11.so not found: '
- 'skipping tests with PKCS11 identities\n')
+ output('soft-pkcs11.so not found: skipping tests with PKCS11 identities\n')
success('Authenticated PKINIT')