751 |
case 16: |
case 16: |
752 |
case 20: return "ELG"; |
case 20: return "ELG"; |
753 |
case 17: return "DSA"; |
case 17: return "DSA"; |
|
default: return "???"; |
|
754 |
} |
} |
755 |
break; |
return "???"; |
756 |
|
|
757 |
case GPGME_ATTR_ALGO_SHORT: |
case GPGME_ATTR_ALGO_SHORT: |
758 |
switch( attr ) { |
switch( attr ) { |
762 |
case 2: |
case 2: |
763 |
case 3: return "R"; |
case 3: return "R"; |
764 |
case 20: return "G"; |
case 20: return "G"; |
|
default: return "?"; |
|
765 |
} |
} |
766 |
break; |
return "?"; |
767 |
|
|
768 |
case GPGME_ATTR_VALIDITY: |
case GPGME_ATTR_VALIDITY: |
769 |
switch( attr ) { |
switch( attr ) { |
782 |
case GPGME_VALIDITY_FULL: return "Full"; |
case GPGME_VALIDITY_FULL: return "Full"; |
783 |
case 'u': |
case 'u': |
784 |
case GPGME_VALIDITY_ULTIMATE: return "Ultimate"; |
case GPGME_VALIDITY_ULTIMATE: return "Ultimate"; |
|
default: return "???"; |
|
785 |
} |
} |
786 |
break; |
return "???"; |
787 |
|
|
788 |
case GPGME_ATTR_CREATED: |
case GPGME_ATTR_CREATED: |
789 |
iso_date = localtime((long*) &attr); |
iso_date = localtime((long*) &attr); |
912 |
case GPGME_PK_RSA_E: |
case GPGME_PK_RSA_E: |
913 |
case GPGME_PK_ELG_E: |
case GPGME_PK_ELG_E: |
914 |
return GPGME_KEY_CANENCR; |
return GPGME_KEY_CANENCR; |
|
|
|
|
default: |
|
|
return 0; |
|
915 |
} |
} |
916 |
|
|
917 |
return 0; |
return 0; |
918 |
} /* gpgme_key_cability_from_algo */ |
} /* gpgme_key_cability_from_algo */ |