- int i;
-
- /* connection options */
- if(conn) {
- printf("Connected to : %s\n",last_open_command);
- } else {
- if(last_open_command)
- printf("Not connected to : %s\n",last_open_command);
- else
- printf("Not connected : \n");
-
- };
- if(yazProxy) printf("using proxy : %s\n",yazProxy);
-
- printf("auto_reconnect : %s\n",auto_reconnect?"on":"off");
-
- if (!auth) {
- printf("Authentication : none\n");
- } else {
- switch(auth->which) {
- case Z_IdAuthentication_idPass:
- printf("Authentication : IdPass\n");
- printf(" Login User : %s\n",auth->u.idPass->userId?auth->u.idPass->userId:"");
- printf(" Login Group : %s\n",auth->u.idPass->groupId?auth->u.idPass->groupId:"");
- printf(" Password : %s\n",auth->u.idPass->password?auth->u.idPass->password:"");
- break;
- case Z_IdAuthentication_open:
- printf("Authentication : psOpen\n");
- printf(" Open string : %s\n",auth->u.open);
- break;
- default:
- printf("Authentication : Unknown\n");
- };
- };
- if ( yazCharset ) printf("Character set : `%s'\n", (yazCharset) ? yazCharset:NULL);
-
- /* bases */
- printf("Bases : ");
+ int i;
+
+ /* connection options */
+ if(conn) {
+ printf("Connected to : %s\n",last_open_command);
+ } else {
+ if(last_open_command)
+ printf("Not connected to : %s\n",last_open_command);
+ else
+ printf("Not connected : \n");
+
+ }
+ if(yazProxy) printf("using proxy : %s\n",yazProxy);
+
+ printf("auto_reconnect : %s\n",auto_reconnect?"on":"off");
+
+ if (!auth) {
+ printf("Authentication : none\n");
+ } else {
+ switch(auth->which) {
+ case Z_IdAuthentication_idPass:
+ printf("Authentication : IdPass\n");
+ printf(" Login User : %s\n",auth->u.idPass->userId?auth->u.idPass->userId:"");
+ printf(" Login Group : %s\n",auth->u.idPass->groupId?auth->u.idPass->groupId:"");
+ printf(" Password : %s\n",auth->u.idPass->password?auth->u.idPass->password:"");
+ break;
+ case Z_IdAuthentication_open:
+ printf("Authentication : psOpen\n");
+ printf(" Open string : %s\n",auth->u.open);
+ break;
+ default:
+ printf("Authentication : Unknown\n");
+ }
+ }
+ if ( yazCharset ) printf("Character set : `%s'\n", (yazCharset) ? yazCharset:NULL);
+
+ /* bases */
+ printf("Bases : ");