~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to egg/tests/test-asn1x.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
   Author: Stef Walter <stef@memberwebs.com>
22
22
*/
23
23
 
24
 
#include "egg-asn1x.h"
 
24
#include "config.h"
 
25
 
 
26
#include "egg/egg-asn1x.h"
 
27
#include "egg/egg-asn1-defs.h"
 
28
#include "egg/egg-testing.h"
25
29
 
26
30
#include <pwd.h>
27
31
#include <stdlib.h>
28
32
#include <unistd.h>
29
33
 
30
 
#include "egg-asn1-defs.h"
31
 
#include "egg-testing.h"
32
 
 
33
34
#if 0
34
35
static void
35
36
build_personal_name (void)
99
100
        build_personal_name ();
100
101
#endif
101
102
 
102
 
        egg_tests_chdir_base (argv[0]);
103
 
 
104
 
        test_some_asn1_stuff (pkix_asn1_tab, "files/test-certificate-1.der", "Certificate");
105
 
        test_some_asn1_stuff (pkix_asn1_tab, "files/test-pkcs8-1.der", "pkcs-8-PrivateKeyInfo");
106
 
        test_some_asn1_stuff (pk_asn1_tab, "files/test-rsakey-1.der", "RSAPrivateKey");
107
 
        test_some_asn1_stuff (pkix_asn1_tab, "files/test-personalname-1.der", "PersonalName");
108
 
        test_some_asn1_stuff (pkix_asn1_tab, "files/test-pkcs7-1.der", "pkcs-7-ContentInfo");
109
 
        test_some_asn1_stuff (pkix_asn1_tab, "files/test-pkcs7-2.der", "pkcs-7-ContentInfo");
110
 
        test_some_asn1_stuff (pkix_asn1_tab, "files/test-pkcs12-1.der", "pkcs-12-PFX");
 
103
        test_some_asn1_stuff (pkix_asn1_tab, SRCDIR "/files/test-certificate-1.der", "Certificate");
 
104
        test_some_asn1_stuff (pkix_asn1_tab, SRCDIR "/files/test-pkcs8-1.der", "pkcs-8-PrivateKeyInfo");
 
105
        test_some_asn1_stuff (pk_asn1_tab, SRCDIR "/files/test-rsakey-1.der", "RSAPrivateKey");
 
106
        test_some_asn1_stuff (pkix_asn1_tab, SRCDIR "/files/test-personalname-1.der", "PersonalName");
 
107
        test_some_asn1_stuff (pkix_asn1_tab, SRCDIR "/files/test-pkcs7-1.der", "pkcs-7-ContentInfo");
 
108
        test_some_asn1_stuff (pkix_asn1_tab, SRCDIR "/files/test-pkcs7-2.der", "pkcs-7-ContentInfo");
 
109
        test_some_asn1_stuff (pkix_asn1_tab, SRCDIR "/files/test-pkcs12-1.der", "pkcs-12-PFX");
111
110
 
112
111
        return 0;
113
112
}