/[pcsclite]/tags/ccid/ccid-1.3.8/examples/scardcontrol.c
ViewVC logotype

Contents of /tags/ccid/ccid-1.3.8/examples/scardcontrol.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2422 - (show annotations) (download)
Fri Feb 23 16:16:57 2007 UTC (6 years, 2 months ago) by rousseau
Original Path: trunk/Drivers/ccid/examples/scardcontrol.c
File MIME type: text/plain
File size: 16400 byte(s)
remove a redundant declaration of i
scardcontrol.c:486: attention : declaration of ā€˜i’ shadows a previous
local
1 /*
2 scardcontrol.c: sample code to use/test SCardControl() API
3 Copyright (C) 2004-2005 Ludovic Rousseau
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20 /*
21 * $Id$
22 */
23
24 #include <stdio.h>
25 #include <stdlib.h>
26 #include <sys/time.h>
27 #include <unistd.h>
28 #include <string.h>
29 #include <arpa/inet.h>
30 #include <winscard.h>
31 #include <reader.h>
32
33 #undef VERIFY_PIN
34 #define MODIFY_PIN
35
36 #ifndef TRUE
37 #define TRUE 1
38 #define FALSE 0
39 #endif
40
41 #define IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE SCARD_CTL_CODE(1)
42
43 /* PCSC error message pretty print */
44 #define PCSC_ERROR_EXIT(rv, text) \
45 if (rv != SCARD_S_SUCCESS) \
46 { \
47 printf(text ": %s (0x%lX)\n", pcsc_stringify_error(rv), rv); \
48 goto end; \
49 } \
50 else \
51 printf(text ": OK\n\n");
52
53 #define PCSC_ERROR_CONT(rv, text) \
54 if (rv != SCARD_S_SUCCESS) \
55 printf(text ": %s (0x%lX)\n", pcsc_stringify_error(rv), rv); \
56 else \
57 printf(text ": OK\n\n");
58
59 int main(int argc, char *argv[])
60 {
61 LONG rv;
62 SCARDCONTEXT hContext;
63 DWORD dwReaders;
64 LPSTR mszReaders;
65 char *ptr, **readers = NULL;
66 int nbReaders;
67 SCARDHANDLE hCard;
68 DWORD dwActiveProtocol, dwReaderLen, dwState, dwProt, dwAtrLen;
69 BYTE pbAtr[MAX_ATR_SIZE] = "";
70 char pbReader[MAX_READERNAME] = "";
71 int reader_nb;
72 int i;
73 unsigned char bSendBuffer[MAX_BUFFER_SIZE];
74 unsigned char bRecvBuffer[MAX_BUFFER_SIZE];
75 DWORD send_length, length;
76 DWORD verify_ioctl = 0;
77 DWORD modify_ioctl = 0;
78 SCARD_IO_REQUEST pioRecvPci;
79 SCARD_IO_REQUEST pioSendPci;
80 PCSC_TLV_STRUCTURE *pcsc_tlv;
81 #if defined(VERIFY_PIN) | defined(MODIFY_PIN)
82 int offset;
83 #endif
84 #ifdef VERIFY_PIN
85 PIN_VERIFY_STRUCTURE *pin_verify;
86 #endif
87 #ifdef MODIFY_PIN
88 PIN_MODIFY_STRUCTURE *pin_modify;
89 #endif
90
91 printf("SCardControl sample code\n");
92 printf("V 1.1 2004-2005, Ludovic Rousseau <ludovic.rousseau@free.fr>\n");
93
94 printf("\nTHIS PROGRAM IS NOT DESIGNED AS A TESTING TOOL!\n");
95 printf("Do NOT use it unless you really know what you do.\n\n");
96
97 rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
98 if (rv != SCARD_S_SUCCESS)
99 {
100 printf("SCardEstablishContext: Cannot Connect to Resource Manager %lX\n", rv);
101 return 1;
102 }
103
104 /* Retrieve the available readers list */
105 rv = SCardListReaders(hContext, NULL, NULL, &dwReaders);
106 if (rv != SCARD_S_SUCCESS)
107 {
108 printf("SCardListReader: %lX\n", rv);
109 }
110
111 mszReaders = malloc(sizeof(char)*dwReaders);
112 if (mszReaders == NULL)
113 {
114 printf("malloc: not enough memory\n");
115 goto end;
116 }
117
118 rv = SCardListReaders(hContext, NULL, mszReaders, &dwReaders);
119 if (rv != SCARD_S_SUCCESS)
120 printf("SCardListReader: %lX\n", rv);
121
122 /* Extract readers from the null separated string and get the total
123 * number of readers */
124 nbReaders = 0;
125 ptr = mszReaders;
126 while (*ptr != '\0')
127 {
128 ptr += strlen(ptr)+1;
129 nbReaders++;
130 }
131
132 if (nbReaders == 0)
133 {
134 printf("No reader found\n");
135 goto end;
136 }
137
138 /* allocate the readers table */
139 readers = calloc(nbReaders, sizeof(char *));
140 if (NULL == readers)
141 {
142 printf("Not enough memory for readers[]\n");
143 goto end;
144 }
145
146 /* fill the readers table */
147 nbReaders = 0;
148 ptr = mszReaders;
149 while (*ptr != '\0')
150 {
151 printf("%d: %s\n", nbReaders, ptr);
152 readers[nbReaders] = ptr;
153 ptr += strlen(ptr)+1;
154 nbReaders++;
155 }
156
157 if (argc > 1)
158 {
159 reader_nb = atoi(argv[1]);
160 if (reader_nb < 0 || reader_nb >= nbReaders)
161 {
162 printf("Wrong reader index: %d\n", reader_nb);
163 goto end;
164 }
165 }
166 else
167 reader_nb = 0;
168
169 /* connect to a reader (even without a card) */
170 dwActiveProtocol = -1;
171 rv = SCardConnect(hContext, readers[reader_nb], SCARD_SHARE_DIRECT,
172 SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, &hCard, &dwActiveProtocol);
173 printf(" Protocol: %ld\n", dwActiveProtocol);
174 PCSC_ERROR_EXIT(rv, "SCardConnect")
175
176 /* get GemPC firmware */
177 printf(" Get GemPC Firmware\n");
178
179 /* this is specific to Gemplus readers */
180 bSendBuffer[0] = 0x02;
181 rv = SCardControl(hCard, IOCTL_SMARTCARD_VENDOR_IFD_EXCHANGE, bSendBuffer,
182 1, bRecvBuffer, sizeof(bRecvBuffer), &length);
183
184 printf(" Firmware: ");
185 for (i=0; i<length; i++)
186 printf("%02X ", bRecvBuffer[i]);
187 printf("\n");
188
189 bRecvBuffer[length] = '\0';
190 printf(" Firmware: %s (length %ld bytes)\n", bRecvBuffer, length);
191
192 PCSC_ERROR_CONT(rv, "SCardControl")
193
194 /* get card status */
195 dwAtrLen = sizeof(pbAtr);
196 dwReaderLen = sizeof(pbReader);
197 rv = SCardStatus(hCard, pbReader, &dwReaderLen, &dwState, &dwProt,
198 pbAtr, &dwAtrLen);
199 printf(" Reader: %s (length %ld bytes)\n", pbReader, dwReaderLen);
200 printf(" State: 0x%lX\n", dwState);
201 printf(" Prot: %ld\n", dwProt);
202 printf(" ATR (length %ld bytes):", dwAtrLen);
203 for (i=0; i<dwAtrLen; i++)
204 printf(" %02X", pbAtr[i]);
205 printf("\n");
206 PCSC_ERROR_CONT(rv, "SCardStatus")
207
208 /* does the reader support PIN verification? */
209 rv = SCardControl(hCard, CM_IOCTL_GET_FEATURE_REQUEST, NULL, 0,
210 bRecvBuffer, sizeof(bRecvBuffer), &length);
211
212 printf(" TLV (%ld): ", length);
213 for (i=0; i<length; i++)
214 printf("%02X ", bRecvBuffer[i]);
215 printf("\n");
216
217 PCSC_ERROR_CONT(rv, "SCardControl(CM_IOCTL_GET_FEATURE_REQUEST)")
218
219 if (length % sizeof(PCSC_TLV_STRUCTURE))
220 {
221 printf("Inconsistent result! Bad TLV values!\n");
222 goto end;
223 }
224
225 /* get the number of elements instead of the complete size */
226 length /= sizeof(PCSC_TLV_STRUCTURE);
227
228 pcsc_tlv = (PCSC_TLV_STRUCTURE *)bRecvBuffer;
229 for (i = 0; i < length; i++)
230 {
231 if (pcsc_tlv[i].tag == FEATURE_VERIFY_PIN_DIRECT)
232 verify_ioctl = ntohl(pcsc_tlv[i].value);
233 if (pcsc_tlv[i].tag == FEATURE_MODIFY_PIN_DIRECT)
234 modify_ioctl = ntohl(pcsc_tlv[i].value);
235 }
236
237 if (0 == verify_ioctl)
238 {
239 printf("Reader %s does not support PIN verification\n",
240 readers[reader_nb]);
241 goto end;
242 }
243
244 /* connect to a reader (even without a card) */
245 dwActiveProtocol = -1;
246 rv = SCardReconnect(hCard, SCARD_SHARE_SHARED,
247 SCARD_PROTOCOL_T0|SCARD_PROTOCOL_T1, SCARD_UNPOWER_CARD,
248 &dwActiveProtocol);
249 printf(" Protocol: %ld\n", dwActiveProtocol);
250 PCSC_ERROR_EXIT(rv, "SCardReconnect")
251
252 switch(dwActiveProtocol)
253 {
254 case SCARD_PROTOCOL_T0:
255 pioSendPci = *SCARD_PCI_T0;
256 break;
257 case SCARD_PROTOCOL_T1:
258 pioSendPci = *SCARD_PCI_T1;
259 break;
260 default:
261 printf("Unknown protocol\n");
262 return -1;
263 }
264
265 /* APDU select applet */
266 printf("Select applet: ");
267 send_length = 11;
268 memcpy(bSendBuffer, "\x00\xA4\x04\x00\x06\xA0\x00\x00\x00\x18\xFF",
269 send_length);
270 for (i=0; i<send_length; i++)
271 printf(" %02X", bSendBuffer[i]);
272 printf("\n");
273 length = sizeof(bRecvBuffer);
274 rv = SCardTransmit(hCard, &pioSendPci, bSendBuffer, send_length,
275 &pioRecvPci, bRecvBuffer, &length);
276 printf(" card response:");
277 for (i=0; i<length; i++)
278 printf(" %02X", bRecvBuffer[i]);
279 printf("\n");
280 PCSC_ERROR_EXIT(rv, "SCardTransmit")
281 if ((bRecvBuffer[0] != 0x90) || (bRecvBuffer[1] != 0x00))
282 {
283 printf("Error: test applet not found!\n");
284 goto end;
285 }
286
287 #ifdef VERIFY_PIN
288 /* verify PIN */
289 printf(" Secure verify PIN\n");
290 pin_verify = (PIN_VERIFY_STRUCTURE *)bSendBuffer;
291
292 /* PC/SC v2.0.2 Part 10 PIN verification data structure */
293 pin_verify -> bTimerOut = 0x00;
294 pin_verify -> bTimerOut2 = 0x00;
295 pin_verify -> bmFormatString = 0x82;
296 pin_verify -> bmPINBlockString = 0x04;
297 pin_verify -> bmPINLengthFormat = 0x00;
298 pin_verify -> wPINMaxExtraDigit = HOST_TO_CCID_16(0x0408); /* Min Max */
299 pin_verify -> bEntryValidationCondition = 0x02; /* validation key pressed */
300 pin_verify -> bNumberMessage = 0x01;
301 pin_verify -> wLangId = HOST_TO_CCID_16(0x0904);
302 pin_verify -> bMsgIndex = 0x00;
303 pin_verify -> bTeoPrologue[0] = 0x00;
304 pin_verify -> bTeoPrologue[1] = 0x00;
305 pin_verify -> bTeoPrologue[2] = 0x00;
306 /* pin_verify -> ulDataLength = 0x00; we don't know the size yet */
307
308 /* APDU: 00 20 00 00 08 30 30 30 30 00 00 00 00 */
309 offset = 0;
310 pin_verify -> abData[offset++] = 0x00; /* CLA */
311 pin_verify -> abData[offset++] = 0x20; /* INS: VERIFY */
312 pin_verify -> abData[offset++] = 0x00; /* P1 */
313 pin_verify -> abData[offset++] = 0x00; /* P2 */
314 pin_verify -> abData[offset++] = 0x08; /* Lc: 8 data bytes */
315 pin_verify -> abData[offset++] = 0x30; /* '0' */
316 pin_verify -> abData[offset++] = 0x30; /* '0' */
317 pin_verify -> abData[offset++] = 0x30; /* '0' */
318 pin_verify -> abData[offset++] = 0x30; /* '0' */
319 pin_verify -> abData[offset++] = 0x00; /* '\0' */
320 pin_verify -> abData[offset++] = 0x00; /* '\0' */
321 pin_verify -> abData[offset++] = 0x00; /* '\0' */
322 pin_verify -> abData[offset++] = 0x00; /* '\0' */
323 pin_verify -> ulDataLength = HOST_TO_CCID_32(offset); /* APDU size */
324
325 length = sizeof(PIN_VERIFY_STRUCTURE) + offset -1; /* -1 because PIN_VERIFY_STRUCTURE contains the first byte of abData[] */
326
327 printf(" command:");
328 for (i=0; i<length; i++)
329 printf(" %02X", bSendBuffer[i]);
330 printf("\n");
331 printf("Enter your PIN: ");
332 fflush(stdout);
333 rv = SCardControl(hCard, verify_ioctl, bSendBuffer,
334 length, bRecvBuffer, sizeof(bRecvBuffer), &length);
335
336 {
337 #ifndef S_SPLINT_S
338 fd_set fd;
339 #endif
340 struct timeval timeout;
341
342 FD_ZERO(&fd);
343 FD_SET(STDIN_FILENO, &fd); /* stdin */
344 timeout.tv_sec = 0; /* timeout = 0.1s */
345 timeout.tv_usec = 100000;
346
347 /* we only try to read stdin if the pinpad is on a keyboard
348 * we do not read stdin for a SPR 532 for example */
349 if (select(1, &fd, NULL, NULL, &timeout) > 0)
350 {
351 /* read the fake digits */
352 char in[40]; /* 4 digits + \n + \0 */
353 (void)fgets(in, sizeof(in), stdin);
354
355 printf("keyboard sent: %s", in);
356 }
357 else
358 /* if it is not a keyboard */
359 printf("\n");
360 }
361
362 printf(" card response:");
363 for (i=0; i<length; i++)
364 printf(" %02X", bRecvBuffer[i]);
365 printf("\n");
366 PCSC_ERROR_CONT(rv, "SCardControl")
367
368 /* verify PIN dump */
369 printf("\nverify PIN dump: ");
370 send_length = 5;
371 memcpy(bSendBuffer, "\x00\x40\x00\x00\xFF",
372 send_length);
373 for (i=0; i<send_length; i++)
374 printf(" %02X", bSendBuffer[i]);
375 printf("\n");
376 length = sizeof(bRecvBuffer);
377 rv = SCardTransmit(hCard, &pioSendPci, bSendBuffer, send_length,
378 &pioRecvPci, bRecvBuffer, &length);
379 printf(" card response:");
380 for (i=0; i<length; i++)
381 printf(" %02X", bRecvBuffer[i]);
382 printf("\n");
383 PCSC_ERROR_EXIT(rv, "SCardTransmit")
384
385 if ((2 == length) && (0x6C == bRecvBuffer[0]))
386 {
387 printf("\nverify PIN dump: ");
388 send_length = 5;
389 memcpy(bSendBuffer, "\x00\x40\x00\x00\xFF",
390 send_length);
391 bSendBuffer[4] = bRecvBuffer[1];
392 for (i=0; i<send_length; i++)
393 printf(" %02X", bSendBuffer[i]);
394 printf("\n");
395 length = sizeof(bRecvBuffer);
396 rv = SCardTransmit(hCard, &pioSendPci, bSendBuffer, send_length,
397 &pioRecvPci, bRecvBuffer, &length);
398 printf(" card response:");
399 for (i=0; i<length; i++)
400 printf(" %02X", bRecvBuffer[i]);
401 printf("\n");
402 PCSC_ERROR_EXIT(rv, "SCardTransmit")
403 }
404 #endif
405
406 /* check if the reader supports Modify PIN */
407 if (0 == modify_ioctl)
408 {
409 printf("Reader %s does not support PIN modification\n",
410 readers[reader_nb]);
411 goto end;
412 }
413
414 #ifdef MODIFY_PIN
415 /* Modify PIN */
416 printf(" Secure modify PIN\n");
417 pin_modify = (PIN_MODIFY_STRUCTURE *)bSendBuffer;
418
419 /* Table for bConfirmPIN and bNumberMessage
420 * bConfirmPIN = 3, bNumberMessage = 3: "Enter Pin" "New Pin" "Confirm Pin"
421 * bConfirmPIN = 2, bNumberMessage = 2: "Enter Pin" "New Pin"
422 * bConfirmPIN = 1, bNumberMessage = 2: "New Pin" "Confirm Pin"
423 * bConfirmPIN = 0, bNumberMessage = 1: "New Pin"
424 */
425 /* PC/SC v2.0.2 Part 10 PIN verification data structure */
426 pin_modify -> bTimerOut = 0x00;
427 pin_modify -> bTimerOut2 = 0x00;
428 pin_modify -> bmFormatString = 0x82;
429 pin_modify -> bmPINBlockString = 0x04;
430 pin_modify -> bmPINLengthFormat = 0x00;
431 pin_modify -> bInsertionOffsetOld = 0x00; /* offset from APDU start */
432 pin_modify -> bInsertionOffsetNew = 0x04; /* offset from APDU start */
433 pin_modify -> wPINMaxExtraDigit = HOST_TO_CCID_16(0x0408); /* Min Max */
434 pin_modify -> bConfirmPIN = 0x03; /* b0 set = confirmation requested */
435 /* b1 set = current PIN entry requested */
436 pin_modify -> bEntryValidationCondition = 0x02; /* validation key pressed */
437 pin_modify -> bNumberMessage = 0x03; /* see table above */
438 pin_modify -> wLangId = HOST_TO_CCID_16(0x0904);
439 pin_modify -> bMsgIndex1 = 0x00;
440 pin_modify -> bMsgIndex2 = 0x00;
441 pin_modify -> bMsgIndex3 = 0x00;
442 pin_modify -> bTeoPrologue[0] = 0x00;
443 pin_modify -> bTeoPrologue[1] = 0x00;
444 pin_modify -> bTeoPrologue[2] = 0x00;
445 /* pin_modify -> ulDataLength = 0x00; we don't know the size yet */
446
447 /* APDU: 00 20 00 00 08 30 30 30 30 00 00 00 00 */
448 offset = 0;
449 pin_modify -> abData[offset++] = 0x00; /* CLA */
450 pin_modify -> abData[offset++] = 0x24; /* INS: CHANGE/UNBLOCK */
451 pin_modify -> abData[offset++] = 0x00; /* P1 */
452 pin_modify -> abData[offset++] = 0x00; /* P2 */
453 pin_modify -> abData[offset++] = 0x08; /* Lc: 2x8 data bytes */
454 pin_modify -> abData[offset++] = 0x30; /* '0' old PIN */
455 pin_modify -> abData[offset++] = 0x30; /* '0' */
456 pin_modify -> abData[offset++] = 0x30; /* '0' */
457 pin_modify -> abData[offset++] = 0x30; /* '0' */
458 pin_modify -> abData[offset++] = 0x30; /* '0' new PIN */
459 pin_modify -> abData[offset++] = 0x30; /* '0' */
460 pin_modify -> abData[offset++] = 0x30; /* '0' */
461 pin_modify -> abData[offset++] = 0x30; /* '0' */
462 pin_modify -> ulDataLength = HOST_TO_CCID_32(offset); /* APDU size */
463
464 length = sizeof(PIN_MODIFY_STRUCTURE) + offset -1; /* -1 because PIN_MODIFY_STRUCTURE contains the first byte of abData[] */
465
466 printf(" command:");
467 for (i=0; i<length; i++)
468 printf(" %02X", bSendBuffer[i]);
469 printf("\n");
470 printf("Enter your PIN: ");
471 fflush(stdout);
472 rv = SCardControl(hCard, modify_ioctl, bSendBuffer,
473 length, bRecvBuffer, sizeof(bRecvBuffer), &length);
474
475 printf(" card response:");
476 for (i=0; i<length; i++)
477 printf(" %02X", bRecvBuffer[i]);
478 printf("\n");
479 PCSC_ERROR_CONT(rv, "SCardControl")
480
481 {
482 #ifndef S_SPLINT_S
483 fd_set fd;
484 #endif
485 struct timeval timeout;
486
487 /* old PIN, new PIN, confirmation PIN */
488 /* if the command is aborted we will not read every "PIN" */
489 for (i=0; i<3; i++)
490 {
491 FD_ZERO(&fd);
492 FD_SET(STDIN_FILENO, &fd); /* stdin */
493 timeout.tv_sec = 0; /* timeout = 0.1s */
494 timeout.tv_usec = 100000;
495
496 /* we only try to read stdin if the pinpad is on a keyboard
497 * we do not read stdin for a SPR 532 for example */
498 if (select(1, &fd, NULL, NULL, &timeout) > 0)
499 {
500 /* read the fake digits */
501 char in[40]; /* 4 digits + \n + \0 */
502
503 (void)fgets(in, sizeof(in), stdin);
504 printf("keyboard sent: %s", in);
505 }
506 }
507 }
508
509 /* modify PIN dump */
510 printf("\nmodify PIN dump: ");
511 send_length = 5;
512 memcpy(bSendBuffer, "\x00\x40\x00\x00\xFF",
513 send_length);
514 for (i=0; i<send_length; i++)
515 printf(" %02X", bSendBuffer[i]);
516 printf("\n");
517 length = sizeof(bRecvBuffer);
518 rv = SCardTransmit(hCard, &pioSendPci, bSendBuffer, send_length,
519 &pioRecvPci, bRecvBuffer, &length);
520 printf(" card response:");
521 for (i=0; i<length; i++)
522 printf(" %02X", bRecvBuffer[i]);
523 printf("\n");
524 PCSC_ERROR_EXIT(rv, "SCardTransmit")
525
526 if ((2 == length) && (0x6C == bRecvBuffer[0]))
527 {
528 printf("\nverify PIN dump: ");
529 send_length = 5;
530 memcpy(bSendBuffer, "\x00\x40\x00\x00\xFF",
531 send_length);
532 bSendBuffer[4] = bRecvBuffer[1];
533 for (i=0; i<send_length; i++)
534 printf(" %02X", bSendBuffer[i]);
535 printf("\n");
536 length = sizeof(bRecvBuffer);
537 rv = SCardTransmit(hCard, &pioSendPci, bSendBuffer, send_length,
538 &pioRecvPci, bRecvBuffer, &length);
539 printf(" card response:");
540 for (i=0; i<length; i++)
541 printf(" %02X", bRecvBuffer[i]);
542 printf("\n");
543 PCSC_ERROR_EXIT(rv, "SCardTransmit")
544 }
545 #endif
546
547 /* card disconnect */
548 rv = SCardDisconnect(hCard, SCARD_UNPOWER_CARD);
549 PCSC_ERROR_CONT(rv, "SCardDisconnect")
550
551 end:
552 /* We try to leave things as clean as possible */
553 rv = SCardReleaseContext(hContext);
554 if (rv != SCARD_S_SUCCESS)
555 printf("SCardReleaseContext: %s (0x%lX)\n", pcsc_stringify_error(rv),
556 rv);
557
558 /* free allocated memory */
559 free(mszReaders);
560 free(readers);
561
562 return 0;
563 } /* main */
564

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5