Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 2c90619ac2ec114e60c0c77b99354cc6 > files > 16

opensc-0.19.0-1.mga7.armv7hl.rpm

# this was auto-generated by OpenSC/doc/tools/Makefile.am
_pkcs11_tool()
{
    COMPREPLY=()
    local cur prev split=false
    _get_comp_words_by_ref cur prev

    _split_longopt && split=true

    opts="		--application-id --application-label --attr-from --change-pin --decrypt --delete-object --derive --derive-pass-der --generate-random --hash --hash-algorithm --id --init-pin --init-token --input-file --issuer --key-type --keygen --keypairgen --label --list-mechanisms --list-objects --list-slots --list-token-slots --login --login-type --mechanism --mgf --module --moz-cert --new-pin --output-file --pin --private --puk --read-object --salt-len --sensitive --set-id --show-info --sign --signature-format --slot --slot-description --slot-index --so-pin --subject --test --test-ec --test-fork --test-hotplug --token-label --type --unlock-pin --usage-decrypt --usage-derive --usage-sign --write-object -I -L -M -O -T -a -b -c -d -e -h -i -k -l -m -o -p -r -s -t -v -w -y -z "

    if [ ${COMP_CWORD} -eq 1 ]; then
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
    fi

    case "${prev}" in
        		--module)
            _filedir so
            return 0
            ;;
        		--attr-from|--input-file|--moz-cert|--output-file|--write-object|-i|-o|-w|-z)
            _filedir
            return 0
            ;;
        		--application-id|--application-label|--attr-from|--generate-random|--hash-algorithm|--id|--input-file|--issuer|--key-type|--label|--mechanism|--mgf|--module|--moz-cert|--new-pin|--output-file|--pin|--puk|--salt-len|--set-id|--signature-format|--slot|--slot-description|--slot-index|--so-pin|--subject|--token-label|--type|--write-object|-a|-d|-e|-i|-m|-o|-p|-w|-y|-z)
            return 0
            ;;
        *)
            COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
            return 0
            ;;
    esac

    $split && return 0

    if [[ "$cur" == -* ]]; then
        _longopt $1
        return
    fi

    _filedir
}
complete -F _pkcs11_tool pkcs11-tool


# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh