Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 52bbb3da

Von aquamaniac vor mehr als 21 Jahren hinzugefügt

  • ID 52bbb3da7321a052964c2ec0ed587e4ec1e37648
  • Vorgänger a31191f0
  • Nachfolger f2db342a

- fixed a bug in DB concerning loading of binary data
- added a warning to DB when an unknown type specifier is found (which
defaults to "char")
- fixed a bug in RSA code concerning loading of keys from a DB
- first successful test of client/server IPC ;-)
Now it basically works. I also fixed many bugs in the code which is not
used by programs, since it is under heavy development.
- reading keys from a file and writing then to a file now works

git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@90 70169cfe-8b10-0410-8925-dcb4b91034d8

Unterschiede anzeigen:

src/ipc/transportlayersocket.c
if (tlp->bio) {
/* if a bio exists then the socket gets by deleted by it */
DBG_DEBUG(0, "Freeing buffered IO");
DBG_INFO(0, "Freeing buffered IO");
GWEN_BufferedIO_Abandon(tlp->bio);
GWEN_BufferedIO_free(tlp->bio);
tlp->socket=0;
......
}
else {
/* bio does not exist, so delete the socket myself */
DBG_DEBUG(0, "No buffered IO, freeing socket");
DBG_INFO(0, "No buffered IO, freeing socket");
err=GWEN_Socket_Close(tlp->socket);
GWEN_Socket_free(tlp->socket);
tlp->socket=0;
......
DBG_INFO(0, "called from here");
}
else {
DBG_DEBUG(0, "Read %d bytes", *bsize);
DBG_INFO(0, "Written %d bytes", *bsize);
}
return err;
}
......
tlp=(GWEN_IPCTRANSSOCKET*)tl->privateData;
GWEN_IPCTransportLayerSocket_Data_free(tlp);
free(tl);
}
}
......
/* --------------------------------------------------------------- FUNCTION */
void GWEN_IPCTransportLayerSocket_Data_free(GWEN_IPCTRANSSOCKET *tlsocket) {
if (tlsocket) {
if (tlsocket->bio)
if (tlsocket->bio) {
GWEN_BufferedIO_free(tlsocket->bio);
else
}
else {
/* only free the socket if it is not used by tlsocket->bio */
GWEN_Socket_free(tlsocket->socket);
}
free(tlsocket);
}
}

Auch abrufbar als: Unified diff