1 /* |
1 /* |
2 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
2 Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
3 |
3 |
4 Redistribution and use in source and binary forms, with or without |
4 Redistribution and use in source and binary forms, with or without |
5 modification, are permitted provided that the following conditions are met: |
5 modification, are permitted provided that the following conditions are met: |
6 |
6 |
7 * Redistributions of source code must retain the above copyright notice, this |
7 * Redistributions of source code must retain the above copyright notice, this |
40 |
40 |
41 |
41 |
42 class CX509_Initializer : CBase |
42 class CX509_Initializer : CBase |
43 { |
43 { |
44 public: |
44 public: |
45 static X509* CreateX509(CX509Certificate* X509Cert); |
45 static X509* CreateX509L(CX509Certificate* X509Cert); |
46 |
46 |
47 |
47 |
48 private: |
48 private: |
49 CX509_Initializer(){} |
49 CX509_Initializer(){} |
50 static X509_VAL * CreateX509_VAL(CX509Certificate* X509Cert); |
50 static X509_VAL * CreateX509_VAL(CX509Certificate* X509Cert); |
51 static ASN1_STRING* CreateASN1_STRING(int len, int type, unsigned char* data, long flags); |
51 static ASN1_STRING* CreateASN1_STRING(int len, int type, unsigned char* data, long flags); |
52 static X509_NAME* CreateX509_NAME(const CX500DistinguishedName& DistName); |
52 static X509_NAME* CreateX509_NAMEL(const CX500DistinguishedName& DistName); |
53 static X509_NAME_ENTRY * CreateX509_NAME_ENTRY(char* type, int typeLen, char * value, int valueLen, int stringType); |
53 static X509_NAME_ENTRY * CreateX509_NAME_ENTRY(char* type, int typeLen, char * value, int valueLen, int stringType); |
54 static X509_ALGOR* CreateX509_ALGOR(const TPtrC8* ptr); |
54 static X509_ALGOR* CreateX509_ALGORL(const TPtrC8* ptr); |
55 static X509_PUBKEY* CreateX509_PUBKEY(CX509Certificate* X509Cert); |
55 static X509_PUBKEY* CreateX509_PUBKEYL(CX509Certificate* X509Cert); |
56 static STACK_OF(X509_EXTENSION) * CreateSTACKOF_X509_EXTENSION(CX509Certificate* X509Cert); |
56 static STACK_OF(X509_EXTENSION) * CreateSTACKOF_X509_EXTENSIONL(CX509Certificate* X509Cert); |
57 static TInt Fill_X509_NAME_ENTRY(X509_NAME* name, const TDesC8& aBinaryData); |
57 static TInt Fill_X509_NAME_ENTRYL(X509_NAME* name, const TDesC8& aBinaryData); |
58 }; |
58 }; |
59 |
59 |
60 |
60 |
61 #endif |
61 #endif |