20 #include "t_errorconverter.h" |
20 #include "t_errorconverter.h" |
21 #include "tScriptSetup.h" |
21 #include "tScriptSetup.h" |
22 #include <securityerr.h> |
22 #include <securityerr.h> |
23 #include <keystore_errs.h> |
23 #include <keystore_errs.h> |
24 |
24 |
25 #ifdef SYMBIAN_AUTH_SERVER |
|
26 #include <auth_srv_errs.h> |
|
27 #endif |
|
28 |
25 |
29 _LIT8(KSpace, " "); |
26 _LIT8(KSpace, " "); |
30 _LIT8(KTab, "\t"); |
27 _LIT8(KTab, "\t"); |
31 _LIT8(KReturn, "\r"); |
28 _LIT8(KReturn, "\r"); |
32 _LIT8(KNewline, "\n"); |
29 _LIT8(KNewline, "\n"); |
573 } |
570 } |
574 else if(aErrCode == KErrAuthenticationFailure) |
571 else if(aErrCode == KErrAuthenticationFailure) |
575 { |
572 { |
576 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthenticationFailure</return>")); |
573 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthenticationFailure</return>")); |
577 } |
574 } |
578 |
|
579 #ifdef SYMBIAN_AUTH_SERVER |
|
580 else if(aErrCode == KErrAuthServUnsupportedExprVersion) |
|
581 { |
|
582 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServUnsupportedExprVersion</return>")); |
|
583 } |
|
584 else if(aErrCode == KErrAuthServNoSuchPlugin) |
|
585 { |
|
586 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServNoSuchPlugin</return>")); |
|
587 } |
|
588 else if(aErrCode == KErrAuthServNoSuchIdentity) |
|
589 { |
|
590 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServNoSuchIdentity</return>")); |
|
591 } |
|
592 else if(aErrCode == KErrAuthServPluginCancelled) |
|
593 { |
|
594 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServPluginCancelled</return>")); |
|
595 } |
|
596 else if(aErrCode == KErrAuthServPluginQuit) |
|
597 { |
|
598 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServPluginQuit</return>")); |
|
599 } |
|
600 else if(aErrCode == KErrAuthServAuthenticationRequired) |
|
601 { |
|
602 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServAuthenticationRequired</return>")); |
|
603 } |
|
604 else if(aErrCode == KErrAuthServIdentityAlreadyExists) |
|
605 { |
|
606 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServIdentityAlreadyExists</return>")); |
|
607 } |
|
608 else if(aErrCode == KErrAuthServIdentityNotFound) |
|
609 { |
|
610 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServIdentityNotFound</return>")); |
|
611 } |
|
612 else if(aErrCode == KErrAuthServTrainingNotFound) |
|
613 { |
|
614 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServTrainingNotFound</return>")); |
|
615 } |
|
616 else if(aErrCode == KErrAuthServRegistrationFailed) |
|
617 { |
|
618 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServRegistrationFailed</return>")); |
|
619 } |
|
620 else if(aErrCode == KErrAuthServCanNotRemoveLastIdentity) |
|
621 { |
|
622 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServCanNotRemoveLastIdentity</return>")); |
|
623 } |
|
624 else if(aErrCode == KErrAuthServCanNotRemoveLastPlugin) |
|
625 { |
|
626 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServCanNotRemoveLastPlugin</return>")); |
|
627 } |
|
628 else if(aErrCode == KErrAuthServPluginNotActive) |
|
629 { |
|
630 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServPluginNotActive</return>")); |
|
631 } |
|
632 else if(aErrCode == KErrAuthServDescTooLong) |
|
633 { |
|
634 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServDescTooLong</return>")); |
|
635 } |
|
636 else if(aErrCode == KErrUnknownAuthStrengthAlias) |
|
637 { |
|
638 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrUnknownAuthStrengthAlias</return>")); |
|
639 } |
|
640 else if(aErrCode == KErrAuthStrengthAliasNotDefined) |
|
641 { |
|
642 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthStrengthAliasNotDefined</return>")); |
|
643 } |
|
644 else if(aErrCode == KErrAuthServInvalidAliasStringExpression) |
|
645 { |
|
646 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServInvalidAliasStringExpression/return>")); |
|
647 } |
|
648 else if(aErrCode == KErrAuthServResetMayLoseIdentity) |
|
649 { |
|
650 aReturnTag.Copy(_L8("\r\n\t\t<return>KErrAuthServResetMayLoseIdentity/return>")); |
|
651 } |
|
652 #endif |
|
653 |
|
654 |
|
655 // |
575 // |
656 |
576 |
657 return err; |
577 return err; |
658 } |
578 } |
659 |
579 |