Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2010-01-02 Thread Martin Preuss
On Saturday 02 January 2010, Rainer Dorsch wrote:
[...]
 Is GWEN_DB_SetIntValue() the right function to write the certs in the
  cache? If is, I think his patch is incomplete, since I do not see it
  there.
[...]

The function GWEN_DB_SetIntValue() modifies a value in a GWEN_DB object. This 
doesn't change anything on your harddisk, it just changes things in memory.

So yes, the patch is incomplete as it only accesses existing entries in the 
cert cache but doesn't create entries on disk.


Regards
Martin


-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2010-01-02 Thread Rainer Dorsch
Hi Martin,

Am Donnerstag, 31. Dezember 2009 schrieb Martin Preuss:
 Ah, so GnuCash looks into the certs storage but doesn't update it.
 So in your case you might just use QBankManager once and et QBankManager
 update the certs cache. After that GnuCash should be able to find the cert
 in the cache.

I tried to compile qbankmanager 0.9.50, but no luck with aqbanking 4.2.3. Is 
that a know problem?
 
g++ -DHAVE_CONFIG_H 
-DCATEGORYDIR=\/opt/qbankmanager-0.9.50/share/qbankmanager/categories\ 
-DQT3_SUPPORT -I. -I. -I../../../.. -I/opt/aqbanking-4.2.3/include 
-I/opt/gwenhywfar-3.11.2/include/gwenhywfar3 
-I/opt/gwenhywfar-3.11.2/include/gwenhywfar3 -I/usr/include/qt3 
-fvisibility=hidden -g -O2 -g -Wall -MT 
app.lo -MD -MP -MF .deps/app.Tpo -c app.cpp  -fPIC -DPIC -o .libs/app.o
/opt/aqbanking-4.2.3/include/aqbanking/banking.h: In member function ‘virtual 
int App::init()’:
/opt/aqbanking-4.2.3/include/aqbanking/banking.h:197: error: too few arguments 
to function ‘int AB_Banking_OnlineInit(AB_BANKING*, uint32_t)’
app.cpp:98: error: at this point in file
app.cpp:105: error: ‘getAppData’ was not declared in this scope
app.cpp: In member function ‘virtual int App::fini()’:
app.cpp:325: error: ‘getAppData’ was not declared in this scope
/opt/aqbanking-4.2.3/include/aqbanking/banking.h:201: error: too few arguments 
to function ‘int AB_Banking_OnlineFini(AB_BANKING*, uint32_t)’
app.cpp:417: error: at this point in file

Thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2010-01-02 Thread Rainer Dorsch
Hi Martin,
Am Samstag, 2. Januar 2010 schrieb Martin Preuss:
 Hi,

 On Saturday 02 January 2010, Rainer Dorsch wrote:
  Am Donnerstag, 31. Dezember 2009 schrieb Martin Preuss:

 [...]

  I tried to compile qbankmanager 0.9.50, but no luck with aqbanking 4.2.3.
   Is that a know problem?

 [...]

 0.9.50 is too old, please trry a newer version (preferrably 0.9.52beta).


0.9.52beta works very well. It also fills the cert cache which gnucash can use 
afterwards.

Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Rainer Dorsch
Am Sonntag, 5. Oktober 2008 schrieben Sie:
 Hi,

 On Sonntag, 5. Oktober 2008, Rainer Dorsch wrote:
 [...]

  Is there in import facility in aqbaning3 or is it sufficient to copy
  files from ~/.banking to ~/.aqbanking?

 [...]

 Just make a copy of the folder .banking and name that copy .aqbanking.
 That's all.

 AqBanking4 already provides functions to semi-automatically import previous
 configurations (as asked for by Micha), so this is dealt with in future
 releases (not in AqBanking3, though).


Martin,

is there anything I need to do when migrating from gnucash/aqbanking3 to 
gnucash/aqbanking4 such that I get my aqbanking configuration migrated. 
gnucash is both times 2.2.9.

Thanks,
Rainer



-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Martin Preuss
Hi,

just issue 

aqbaning-cli updateconf

and be done with it ;-)


Regards
Martin


On Thursday 31 December 2009, Rainer Dorsch wrote:
 Am Sonntag, 5. Oktober 2008 schrieben Sie:
  Hi,
 
  On Sonntag, 5. Oktober 2008, Rainer Dorsch wrote:
  [...]
 
   Is there in import facility in aqbaning3 or is it sufficient to copy
   files from ~/.banking to ~/.aqbanking?
 
  [...]
 
  Just make a copy of the folder .banking and name that copy
  .aqbanking. That's all.
 
  AqBanking4 already provides functions to semi-automatically import
  previous configurations (as asked for by Micha), so this is dealt with in
  future releases (not in AqBanking3, though).
 
 Martin,
 
 is there anything I need to do when migrating from gnucash/aqbanking3 to
 gnucash/aqbanking4 such that I get my aqbanking configuration migrated.
 gnucash is both times 2.2.9.
 
 Thanks,
 Rainer
 


-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Rainer Dorsch
HmmI started gnucash with aqbanking4 before, now I get

r...@blackbox:~/SW.nobackup/aqbanking-4.2.1$ aqbanking-cli updateconf
Config for AqBanking 4 found, no update needed.
Your configuration seems to be ok.
r...@blackbox:~/SW.nobackup/aqbanking-4.2.1$

I tried to move .aqbanking (which is empty):

r...@blackbox:~$ mv .aqbanking .aqbanking.bak
r...@blackbox:~$ aqbanking-cli updateconf
Config for AqBanking 4 not found, update needed (-55)
Config for AqBanking 3 not found (-51)
Config for AqBanking 2 not found (-51), no usable configuration found to 
update.
r...@blackbox:~$

but then no config for aqbanking3 is found.

Can you tell what I really need (I could get that from my backup if required) 
and what must not be there?

Thanks,
Rainer

Am Donnerstag, 31. Dezember 2009 schrieb Martin Preuss:
 Hi,

 just issue

 aqbaning-cli updateconf

 and be done with it ;-)


 Regards
 Martin

 On Thursday 31 December 2009, Rainer Dorsch wrote:
  Am Sonntag, 5. Oktober 2008 schrieben Sie:
   Hi,
  
   On Sonntag, 5. Oktober 2008, Rainer Dorsch wrote:
   [...]
  
Is there in import facility in aqbaning3 or is it sufficient to copy
files from ~/.banking to ~/.aqbanking?
  
   [...]
  
   Just make a copy of the folder .banking and name that copy
   .aqbanking. That's all.
  
   AqBanking4 already provides functions to semi-automatically import
   previous configurations (as asked for by Micha), so this is dealt with
   in future releases (not in AqBanking3, though).
 
  Martin,
 
  is there anything I need to do when migrating from gnucash/aqbanking3 to
  gnucash/aqbanking4 such that I get my aqbanking configuration migrated.
  gnucash is both times 2.2.9.
 
  Thanks,
  Rainer



-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Martin Preuss
Hi,

On Thursday 31 December 2009, Martin Preuss wrote:
[...]
 aqbaning-cli updateconf
[...]

Uups, sorry, it rather is aqban*k*ing-cli updateconf.


Regards
Martin


-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Martin Preuss
Hi,

On Thursday 31 December 2009, Rainer Dorsch wrote:
[...]
 I was surprised that aqbanking4 deleted/overwrote the aqbanking3 settings
  (if that turns out to be true). I would have expected a message if I
  really want to do that
[...]

aqbanking-cli never deletes your old data folder, it just imports it and 
possibly creates new folders.

What version of AqBanking were you using before exactly?

.banking/ - AqBanking1, 2
.aqbanking - AqBanking3
.aqbanking/settings - AqBanking4


Regards
Martin


-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Martin Preuss
Hi,

On Thursday 31 December 2009, Rainer Dorsch wrote:
[...]
 r...@blackbox:~/SW.nobackup/aqbanking-4.2.1$ aqbanking-cli updateconf
 Config for AqBanking 4 found, no update needed.
 Your configuration seems to be ok.
[...]

So there already is a user setup containing at least a single user (see 
.aqbanking/settings/users)?


Regards
Martin



-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Rainer Dorsch
Hi Martin,

Am Donnerstag, 31. Dezember 2009 schrieben Sie:
 Hi,

 On Thursday 31 December 2009, Rainer Dorsch wrote:
 [...]

  I was surprised that aqbanking4 deleted/overwrote the aqbanking3 settings
   (if that turns out to be true). I would have expected a message if I
   really want to do that

 [...]

 aqbanking-cli never deletes your old data folder, it just imports it and
 possibly creates new folders.

 What version of AqBanking were you using before exactly?

 .banking/ - AqBanking1, 2
 .aqbanking - AqBanking3
 .aqbanking/settings - AqBanking4


Now I understand what happened:

I used before aqbanking-3.8.2 now I upgraded to aqbanking-4.2.1. I started 
gnucash with aqbanking-4.2.1. Now .aqbanking/settings was created.

Then I run aqbanking-cli updateconf which found the AqBanking4 configuration. 

I removed now .aqbanking/settings and aqbanking-cli works as expected:

r...@blackbox:~$ aqbanking-cli updateconf
Config for AqBanking 4 not found, update needed (-55)
Config for AqBanking 3 found, importing
Your configuration seems to be ok.
r...@blackbox:~$

and gnucash finds the aqbanking account information. If aqbanking-cli 
updateconf would have asked me if I want to overwrite my aqbanking4 config 
with the aqbanking3 config, it would have worked right away for me.


The whole point of upgrading for me was to get rid of the annoying cert 
warnings https://bugzilla.gnome.org/show_bug.cgi?id=559670

Micha provided a patch for that. I think the main part of the patch is:

Index: src/import-export/aqbanking/gnc-ab-utils.c
===
--- src/import-export/aqbanking/gnc-ab-utils.c  (Revision 18540)
+++ src/import-export/aqbanking/gnc-ab-utils.c  (Arbeitskopie)
@@ -804,3 +804,24 @@

 return gnc_gen_trans_list_run(ieci-generic_importer);
 }
+
+GWEN_DB_NODE *
+gnc_ab_get_permanent_certs(void)
+{
+int rv;
+GWEN_DB_NODE *perm_certs = NULL;
+AB_BANKING *banking = gnc_AB_BANKING_new();
+
+g_return_val_if_fail(banking, NULL);
+#ifdef AQBANKING_VERSION_4_PLUS
+rv = AB_Banking_LoadSharedConfig(banking, certs, perm_certs, 0);
+#else
+/* FIXME: Add code for older AqBanking versions */
+/* See QBankmanager 0.9.50 in src/kbanking/libs/kbanking.cpp lines 323ff
+   for a proper example of how to do this */
+rv = 0;
+#endif
+gnc_AB_BANKING_fini(banking);
+g_return_val_if_fail(rv = 0, NULL);
+return perm_certs;
+}


I conclude from the patch that the certstore is in aqbanking. I would like to 
find out first if my certs do not make it to aqbanking or if aqbanking does 
not do the correct comparison. Can I dump all currently available certs 
aqbanking is aware of? I hoped for aqbanking-cli, but did not see an 
appropriate option...


Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Martin Preuss
Hi,

On Thursday 31 December 2009, Rainer Dorsch wrote:
[...]
 and gnucash finds the aqbanking account information. If aqbanking-cli
 updateconf would have asked me if I want to overwrite my aqbanking4 config
 with the aqbanking3 config, it would have worked right away for me.
[...]

Well, the task of the command updateconf is to upgrade existing older 
configurations to make them usable for AqBanking4.
If there already is a configuration for AqBanking4 (which this tool checks for) 
why should it ask whether the user wants to overwrite it? 

This is too much a rare case to be handled in this tool. If you want to 
overwrite the existing AqBanking4 configuration: delete it ;-)

[...]
 I conclude from the patch that the certstore is in aqbanking. I would like
  to find out first if my certs do not make it to aqbanking or if aqbanking
  does not do the correct comparison. Can I dump all currently available
  certs aqbanking is aware of? I hoped for aqbanking-cli, but did not see an
  appropriate option...
[...]

Well, AqBanking *provides* a cert store which *can* be used by the 
application. So far KMyMoney and my own applications do use it, however, 
GnuCash doesn't (or at least didn't the last time I checked).

Most of the problems arise from GnuCash's interpretation of the GWEN_GUI 
framework which is in contrast to the intentions I had when creating the 
GWEN_GUI stuff.

AqBanking already comes with a nice GUI baseclass which already provides PIN- 
and certificate management  (AB_Gui) but due to the implementation in GnuCash 
this class can't be used with GnuCash ATM.


Regards
Martin


-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Rainer Dorsch
Am Donnerstag, 31. Dezember 2009 schrieben Sie:
[...]
 Well, the task of the command updateconf is to upgrade existing older
 configurations to make them usable for AqBanking4.
 If there already is a configuration for AqBanking4 (which this tool checks
 for) why should it ask whether the user wants to overwrite it?

Well, maybe I am the only one who first tries to start aqbanking4 (which 
creates an empty config) and then starts to investigate why it is not 
working. After I did this aqbanking-cli could not help anymore...

 This is too much a rare case to be handled in this tool. If you want to
 overwrite the existing AqBanking4 configuration: delete it ;-)

That is fine for me (works for me now;-).

 [...]

  I conclude from the patch that the certstore is in aqbanking. I would
  like to find out first if my certs do not make it to aqbanking or if
  aqbanking does not do the correct comparison. Can I dump all currently
  available certs aqbanking is aware of? I hoped for aqbanking-cli, but did
  not see an appropriate option...

 [...]

 Well, AqBanking *provides* a cert store which *can* be used by the
 application. So far KMyMoney and my own applications do use it, however,
 GnuCash doesn't (or at least didn't the last time I checked).

You are probably right. I miss-interpreted

AB_Banking_LoadSharedConfig

as an AqBanking function, but it start with AB not AQ :-(.

I try to contact the gnucash guys for that issue.

Many thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Martin Preuss
Hi,

On Thursday 31 December 2009, Rainer Dorsch wrote:
 Am Donnerstag, 31. Dezember 2009 schrieben Sie:
[...]
 Well, maybe I am the only one who first tries to start aqbanking4 (which
 creates an empty config) and then starts to investigate why it is not
 working. After I did this aqbanking-cli could not help anymore...
[...]

What do you mean by start aqbanking4?

Just starting an application linked against AqBanking4 doesn't create a 
working aqbanking4-configuration.

The command aqbanking-cli updateconf is smarter than just to check whether 
the folder exists... It also checks whether there are users setup inside the 
aqbanking4 configuration. If there is none it tries to update from previous 
versions. If there already are users in the AqBanking4 configuration the tool 
does nothing.

However, I don't know whether your GnuCash version already tried to update the 
configuration.

[...]
 You are probably right. I miss-interpreted
 
 AB_Banking_LoadSharedConfig
 
 as an AqBanking function, but it start with AB not AQ :-(.
[...]

It *is* an AqBanking function (AB_ is the prefix for AqBanking functions), 
and I guess the patch by Micha *does* work.

I only wanted to point out that AqBanking already provides simplified means to 
access AqBanking's certificate cache but that GnuCash can't use them due to its 
structure.

The patch you referred to makes GnuCash access the cert cache directly which 
is also kind'a ok. 
However, I guess it won't work with multiple AqBanking-applications working in 
parallel (which is currently a rare case, granted).

If GnuCash could have used the class AB_Gui it wouldn't have to access the 
cache itself but could rather benefit from the advanced certificate management 
of AB_Gui).


Regards
Martin


-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Rainer Dorsch
Am Donnerstag, 31. Dezember 2009 schrieben Sie:
[...]

 What do you mean by start aqbanking4?

 Just starting an application linked against AqBanking4 doesn't create a
 working aqbanking4-configuration.

 The command aqbanking-cli updateconf is smarter than just to check
 whether the folder exists... It also checks whether there are users setup
 inside the aqbanking4 configuration. If there is none it tries to update
 from previous versions. If there already are users in the AqBanking4
 configuration the tool does nothing.

 However, I don't know whether your GnuCash version already tried to update
 the configuration.

This is from memory, but I am very sure that it is accurate:
I started gnucash, tried Saldenabfrage nothing happend, then I 
did Aqbanking Einrichtungs-Assistenten starten verified that no account is 
configured and aborted it again.

For sure, I did not enter any data.


[...]
 [...]

 It *is* an AqBanking function (AB_ is the prefix for AqBanking
 functions), and I guess the patch by Micha *does* work.

 I only wanted to point out that AqBanking already provides simplified means
 to access AqBanking's certificate cache but that GnuCash can't use them due
 to its structure.

Ic

 The patch you referred to makes GnuCash access the cert cache directly
 which is also kind'a ok.

Can I dump the AqBanking's cert cache (to verify if the certs do not make it 
into the cache or if the cache lookup does not work for some reason).

 However, I guess it won't work with multiple AqBanking-applications working
 in parallel (which is currently a rare case, granted).

I can easily accept that restriction.

 If GnuCash could have used the class AB_Gui it wouldn't have to access the
 cache itself but could rather benefit from the advanced certificate
 management of AB_Gui).

I hope that gnucash 2.4.0 will use more AqBanking infrastructure instead of 
replicting code.

Thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2009-12-31 Thread Rainer Dorsch
Hi Martin,

Am Donnerstag, 31. Dezember 2009 schrieb Martin Preuss:
 Hi,

 On Thursday 31 December 2009, Rainer Dorsch wrote:
  Am Donnerstag, 31. Dezember 2009 schrieben Sie:

 [...]

  Can I dump the AqBanking's cert cache (to verify if the certs do not make
   it into the cache or if the cache lookup does not work for some reason).

 [...]

 Not exactly, however, you can look into
 $HOME/.aqbanking/settings/shared/certs.conf and check whether it is empty
 or not.

r...@blackbox:~/SW.nobackup/gnucash-2.2-branch$ ls -l 
$HOME/.aqbanking/settings/shared/certs.conf
-rw--- 1 rd rd 0 31. Dez 
15:03 /home/rd/.aqbanking/settings/shared/certs.conf
r...@blackbox:~/SW.nobackup/gnucash-2.2-branch$

Hmm...it is empty, but it is touched.

Should GWEN_DB_GetIntValue() put the certs in the cache?

+/* Did we get the permanently accepted certs from AqBanking? */
+if (gui-permanently_accepted_certs) {
+/* Generate a hex string of the cert_hash for usage by AqBanking cert 
store */
+cert_hash_hex = g_new0(gchar, 33);
+for (i = 0; i  16; i++)
+g_snprintf(cert_hash_hex+2*i, 3, %02X, (unsigned 
char)cert_hash[i]);
+
+retval=GWEN_DB_GetIntValue(gui-permanently_accepted_certs, 
cert_hash_hex, 0, -1);
+g_free(cert_hash_hex);
+if (retval == 0) {
+/* Certificate is marked as accepted in AqBanking's cert store */
+LEAVE(Certificate accepted by AqBanking's permanent cert 
store);
+return 0;
+}
+} else {
+g_warning(Can't check permanently accepted certs from invalid 
AqBanking cert store.);
+}

Is there a way to increase the verboseness of aqbanking?

Thanks,
Rainer

 AqBanking doesn't store the certificates but rather a checksum over the
 fingerprint of the cert combined with the result of GnuTLS's certificate
 checks.

Do you have any version requirements on GnuTLS? Is 2.4.2 good enough?

Thanks,
Rainer


-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdor...@web.de
jabber: rdor...@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/


signature.asc
Description: This is a digitally signed message part.
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2008-10-16 Thread Micha Lenk
Hi Rainer,

Rainer Dorsch wrote:
 it seems, that my problem is not related to the Debian pakages. I compiled 
 now 
 the latest versions of 
 
 - gnucash 2.2.7
 - aqbanking 3.8.0
 -gwenhywfar 3.5.0
 
 and see the same problem.
 
 What could I do to find out what is causing the problem?
 
 I run aqhbci-tool3, that points to gnutls, but not sure if that is the right 
 
 [EMAIL PROTECTED]:~$ aqhbci-tool3 getsysid -c xxx
 3:2008/10/11 22-52-50:aqhbci(27330):job.c:  193: Job JobTan not supported 
 by 
 your bank
 AqHBCI gestartet
 Mit Bank verbinden...
 Ermittle Adresse von hbci-pintan-by.s-hbci.de ...
 Ermittelte IP Adresse ist 195.140.107.125
 Selecting iTAN mode iTAN
 Auftr�ge werden kodiert
 = PIN-Eingabe =
 Please enter the PIN for
 user x at Deutsche Kreditbank Berlin
 
 Input: *
 Auftr�ge werden gesendet
 Mit Bank verbinden...
 = Zertifikat empfangen =
 Das folgende Zertifikat wurde empfangen:
 Name: hbci-pintan-by.s-hbci.de
 Organisation: Sparkassen Informatik GmbH  Co.KG
 Abteilung   : Internet Systeme
 Staat   : DE
 Stadt   : Frankfurt
 Bundesland  : Hessen
 G�ltig ab   : 08.01.2008 01:00:00
 G�ltig bis  : 27.02.2009 00:59:59
 Hash: 72:C8:41:69:43:E3:14:B3:24:A2:F4:7B:59:41:E7:87
 Status  : The certificate is valid
 Wollen Sie dieses Zertifikat akzeptieren?
 (1) Ja  (2) Nein
 Please enter your choice: 1
 Verbunden.
 Warte auf Antwort
 3:2008/10/11 22-52-57:gwen(27330):io_tls.c: 1229: gnutls_bye: -10 (The 
 specified session has been invalidated for some reason.)
 Keine Antwort (Timeout)

It might help to enable the Force SSLv3 option in the HBCI settings.

Regards
  Micha

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2008-10-11 Thread Rainer Dorsch
Hello,

it seems, that my problem is not related to the Debian pakages. I compiled now 
the latest versions of 

- gnucash 2.2.7
- aqbanking 3.8.0
-gwenhywfar 3.5.0

and see the same problem.

What could I do to find out what is causing the problem?

I run aqhbci-tool3, that points to gnutls, but not sure if that is the right 

[EMAIL PROTECTED]:~$ aqhbci-tool3 getsysid -c xxx
3:2008/10/11 22-52-50:aqhbci(27330):job.c:  193: Job JobTan not supported by 
your bank
AqHBCI gestartet
Mit Bank verbinden...
Ermittle Adresse von hbci-pintan-by.s-hbci.de ...
Ermittelte IP Adresse ist 195.140.107.125
Selecting iTAN mode iTAN
Auftr�ge werden kodiert
= PIN-Eingabe =
Please enter the PIN for
user x at Deutsche Kreditbank Berlin

Input: *
Auftr�ge werden gesendet
Mit Bank verbinden...
= Zertifikat empfangen =
Das folgende Zertifikat wurde empfangen:
Name: hbci-pintan-by.s-hbci.de
Organisation: Sparkassen Informatik GmbH  Co.KG
Abteilung   : Internet Systeme
Staat   : DE
Stadt   : Frankfurt
Bundesland  : Hessen
G�ltig ab   : 08.01.2008 01:00:00
G�ltig bis  : 27.02.2009 00:59:59
Hash: 72:C8:41:69:43:E3:14:B3:24:A2:F4:7B:59:41:E7:87
Status  : The certificate is valid
Wollen Sie dieses Zertifikat akzeptieren?
(1) Ja  (2) Nein
Please enter your choice: 1
Verbunden.
Warte auf Antwort
3:2008/10/11 22-52-57:gwen(27330):io_tls.c: 1229: gnutls_bye: -10 (The 
specified session has been invalidated for some reason.)
Keine Antwort (Timeout)
3:2008/10/11 22-52-57:aqhbci(27330):outbox.c: 1351: Error performing queue 
(-1002)
AqHBCI abgeschlossen.
3:2008/10/11 22-52-57:aqhbci(27330):provider.c: 1113: Job has errors
3:2008/10/11 22-52-57:(null)(27330):getsysid.c:  157: Error getting system id 
(-1)
[EMAIL PROTECTED]:~$

Thanks,
Rainer

Am Freitag, 10. Oktober 2008 schrieb Rainer Dorsch:
 Hello,

 Am Sonntag, 5. Oktober 2008 schrieben Sie:
  Hi,
 
  On Sonntag, 5. Oktober 2008, Rainer Dorsch wrote:
  [...]
 
   Is there in import facility in aqbaning3 or is it sufficient to copy
   files from ~/.banking to ~/.aqbanking?
 
  [...]
 
  Just make a copy of the folder .banking and name that copy
  .aqbanking. That's all.

 That was an easy migration, but it worked only half way:
 - all bank account information was migrated
 - I get in gnucash 2.2.6/aqbanking 3.6.2 a timeout when working with
 aqbanking, even when I download the Systemkennung:


 23:00:47
 AqHBCI gestartet
 23:00:47
 Mit Bank verbinden...
 23:00:47
 Ermittle Adresse von hbci-pintan-by.s-hbci.de ...
 23:00:47
 Ermittelte IP Adresse ist 195.140.107.125
 23:00:47
 Selecting iTAN mode iTAN
 23:00:47
 Aufträge werden kodiert
 23:00:53
 Aufträge werden gesendet
 23:00:53
 Mit Bank verbinden...
 23:00:56
 Verbunden.
 23:00:56
 Warte auf Antwort
 23:00:56
 Keine Antwort (Timeout)
 23:00:56
 AqHBCI abgeschlossen.
 23:00:56
 Abgeschlossen. Sie können dieses Fenster nun schließen.


 I am using gnucash from Debian lenny. Do the Debian packages have known
 problems in this area?

 Thanks,
 Rainer

  AqBanking4 already provides functions to semi-automatically import
  previous configurations (as asked for by Micha), so this is dealt with in
  future releases (not in AqBanking3, though).
 
 
  Regards
  Martin



-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2008-10-10 Thread Rainer Dorsch
Hello,

Am Sonntag, 5. Oktober 2008 schrieben Sie:
 Hi,

 On Sonntag, 5. Oktober 2008, Rainer Dorsch wrote:
 [...]

  Is there in import facility in aqbaning3 or is it sufficient to copy
  files from ~/.banking to ~/.aqbanking?

 [...]

 Just make a copy of the folder .banking and name that copy .aqbanking.
 That's all.

That was an easy migration, but it worked only half way:
- all bank account information was migrated
- I get in gnucash 2.2.6/aqbanking 3.6.2 a timeout when working with 
aqbanking, even when I download the Systemkennung:


23:00:47
AqHBCI gestartet
23:00:47
Mit Bank verbinden...
23:00:47
Ermittle Adresse von hbci-pintan-by.s-hbci.de ...
23:00:47
Ermittelte IP Adresse ist 195.140.107.125
23:00:47
Selecting iTAN mode iTAN
23:00:47
Aufträge werden kodiert
23:00:53
Aufträge werden gesendet
23:00:53
Mit Bank verbinden...
23:00:56
Verbunden.
23:00:56
Warte auf Antwort
23:00:56
Keine Antwort (Timeout)
23:00:56
AqHBCI abgeschlossen.
23:00:56
Abgeschlossen. Sie können dieses Fenster nun schließen.


I am using gnucash from Debian lenny. Do the Debian packages have known 
problems in this area?

Thanks,
Rainer

 AqBanking4 already provides functions to semi-automatically import previous
 configurations (as asked for by Micha), so this is dealt with in future
 releases (not in AqBanking3, though).


 Regards
 Martin



-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


[Aqbanking-devel] Migrating to gnucash/aqbanking3

2008-10-05 Thread Rainer Dorsch
Hello,

I am wonding if there is an howto for the migration from gnucash/aqbanking2 to 
gnucash/aqbanking3? 

Is there in import facility in aqbaning3 or is it sufficient to copy files 
from ~/.banking to ~/.aqbanking? 

If yes, which ones?

Many thanks,
Rainer

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel


Re: [Aqbanking-devel] Migrating to gnucash/aqbanking3

2008-10-05 Thread Martin Preuss
Hi,

On Sonntag, 5. Oktober 2008, Rainer Dorsch wrote:
[...]
 Is there in import facility in aqbaning3 or is it sufficient to copy files
 from ~/.banking to ~/.aqbanking?
[...]

Just make a copy of the folder .banking and name that copy .aqbanking. 
That's all.

AqBanking4 already provides functions to semi-automatically import previous 
configurations (as asked for by Micha), so this is dealt with in future 
releases (not in AqBanking3, though).


Regards
Martin


-- 
Things are only impossible until they're not

Martin Preuss - http://www2.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel