summaryrefslogtreecommitdiffstats
path: root/base/tps/tools/raclient/nt_enroll.test
blob: f4faf18fe552f068a2f3608cfeed9e5d94841605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# --- BEGIN COPYRIGHT BLOCK ---
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 2.1 of the License.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA  02110-1301  USA 
# 
# Copyright (C) 2007 Red Hat, Inc.
# All rights reserved.
# --- END COPYRIGHT BLOCK ---
#
########################################################
# Description:
#    This data file tests enrollment operation.
#
# Execution:
#    tpsclient < enroll.test
#
########################################################
op=var_set name=ra_host value=water
op=var_set name=ra_port value=7888
op=var_set name=ra_uri value=/nk_service
########################################################
# Possible return codes:
#
# General errors:
#  6400 - No specific diagnosis
#  6700 - Wrong length in Lc
#  6982 - Security status not satisfied
#  6985 - Conditions of use not satisified
#  6a86 - Incorrect P1 P2
#  6d00 - Invalid instruction
#  6e00 - Invalid class
#
# Install Load errors:
#  6581 - Memory Failure
#  6a80 - Incorrect parameters in data field
#  6a84 - Not enough memory space
#  6a88 - Referenced data not found
#
# Delete errors:
#  6200 - Application has been logically deleted
#  6581 - Memory failure
#  6985 - Referenced data cannot be deleted
#  6a88 - Referenced data not found
#  6a82 - Application not found
#  6a80 - Incorrect values in command data
#
# Get Data errors:
#  6a88 - Referenced data not found
#
# Get Status errors:
#  6310 - More data available
#  6a88 - Referenced data not found
#  6a80 - Incorrect values in command data
#
# Load errors:
#  6581 - Memory failure
#  6a84 - Not enough memory space
#  6a86 - Incorrect P1/P2
#  6985 - Conditions of use not satisified
########################################################
#
########################################################
# Negative Test Cases Testing:
#
# To enable the testing, you need to uncomment
# the following:
#
#op=var_set name=test_enable value=true
#
# Init Update APDU:
#
#op=var_set name=test_apdu_iu_return_enable value=true
#op=var_set name=test_apdu_iu_return value=6a88
#
# External Authenticate APDU:
#
#op=var_set name=test_apdu_ea_return_enable value=true
#op=var_set name=test_apdu_ea_return value=6a88
#
# Generate Key APDU:
#
#op=var_set name=test_apdu_gk_return_enable value=true
#op=var_set name=test_apdu_gk_return value=6a88
#
# Create Object APDU:
#
#op=var_set name=test_apdu_co_return_enable value=true
#op=var_set name=test_apdu_co_return value=6a88
#
# Life Cycle APDU:
#
#op=var_set name=test_apdu_lc_return_enable value=true
#op=var_set name=test_apdu_lc_return value=6a88
#
# Delete File APDU:
#
#op=var_set name=test_apdu_df_return_enable value=true
#op=var_set name=test_apdu_df_return value=6a88
#
# Install Applet APDU:
#
#op=var_set name=test_apdu_ia_return_enable value=true
#op=var_set name=test_apdu_ia_return value=6a88
#
# Install Load APDU:
#
#op=var_set name=test_apdu_il_return_enable value=true
#op=var_set name=test_apdu_il_return value=6a88
#
# Load File APDU:
#
#op=var_set name=test_apdu_lf_return_enable value=true
#op=var_set name=test_apdu_lf_return value=6a88
#
# Select Applet APDU:
#
#op=var_set name=test_apdu_se_return_enable value=true
#op=var_set name=test_apdu_se_return value=6a88
#
# List PINs APDU:
#
#op=var_set name=test_apdu_lp_return_enable value=true
#op=var_set name=test_apdu_lp_return value=6a88
#
# Create PIN APDU:
#
#op=var_set name=test_apdu_cp_return_enable value=true
#op=var_set name=test_apdu_cp_return value=6a88
#
# Get Version APDU:
#
#op=var_set name=test_apdu_gv_return_enable value=true
#op=var_set name=test_apdu_gv_return value=6a88
#
# Get Data APDU:
#op=var_set name=test_apdu_gd_return_enable value=true
#op=var_set name=test_apdu_gd_return value=6a88
#
# Get Status APDU:
#
#op=var_set name=test_apdu_gs_return_enable value=true
#op=var_set name=test_apdu_gs_return value=6a88
#
# Put Key APDU:
#
#op=var_set name=test_apdu_pk_return_enable value=true
#op=var_set name=test_apdu_pk_return value=6a88
#
# Import Key Enc APDU:
#
#op=var_set name=test_apdu_ik_return_enable value=true
#op=var_set name=test_apdu_ik_return value=6a88
#
# Read Buffer APDU:
#
#op=var_set name=test_apdu_rb_return_enable value=true
#op=var_set name=test_apdu_rb_return value=6a88
#
# Unblock PIN APDU:
#
#op=var_set name=test_apdu_up_return_enable value=true
#op=var_set name=test_apdu_up_return value=6a88
#
# List Objects APDU:
#
#op=var_set name=test_apdu_lo_return_enable value=true
#op=var_set name=test_apdu_lo_return value=6a88
#
# Read Object APDU:
#
#op=var_set name=test_apdu_ro_return_enable value=true
#op=var_set name=test_apdu_ro_return value=6a88
#
# Write Buffer APDU:
#
#op=var_set name=test_apdu_wb_return_enable value=true
#op=var_set name=test_apdu_wb_return value=6a88
#
# Set PIN APDU:
#
#op=var_set name=test_apdu_sp_return_enable value=true
#op=var_set name=test_apdu_sp_return value=6a88
#
# ExtendedLoginRequest Message:
#
#op=var_set name=test_msg_el_resp_exclude_uid value=true
#op=var_set name=test_msg_el_resp_exclude_pwd value=true
#op=var_set name=test_msg_el_resp_add_invalid_param value=true
#
########################################################
# print original token status
op=token_set cuid=a00192030405060708c9 msn=01020304 app_ver=6FBBC105 key_info=0101 major_ver=0 minor_ver=0
op=token_set auth_key=404142434445464748494a4b4c4d4e4f
op=token_set mac_key=404142434445464748494a4b4c4d4e4f
op=token_set kek_key=404142434445464748494a4b4c4d4e4f
op=token_status
#op=ra_enroll uid=test pwd=password new_pin=password
op=ra_enroll uid=testuser1 num_threads=1 pwd=netscape new_pin=password 
# print changed token status
op=token_status
op=exit