Skip to content

invalid type for argument rng in method definition for gen_key #120

Closed
@staticfloat

Description

Trying to use this on a bleeding edge version of Julia fails with:

julia> using MbedTLS                                                                                                       [6/400]
[ Info: Precompiling module MbedTLS
WARNING: importing deprecated binding Base.AbstractRNG into MbedTLS.
ERROR: LoadError: LoadError: ArgumentError: invalid type for argument rng in method definition for gen_key at /home/sabae/.julia/v0.7/MbedTLS/src/rsa.jl:97
Stacktrace:
 [1] top-level scope
 [2] include at ./boot.jl:292 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:521
 [4] include at ./sysimg.jl:26 [inlined]
 [5] include(::String) at /home/sabae/.julia/v0.7/MbedTLS/src/MbedTLS.jl:2
 [6] top-level scope
 [7] include at ./boot.jl:292 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:521
 [9] include(::Module, ::String) at ./sysimg.jl:26
 [10] top-level scope
 [11] eval at ./boot.jl:295 [inlined]
 [12] top-level scope at ./<missing>:2
in expression starting at /home/sabae/.julia/v0.7/MbedTLS/src/rsa.jl:96
in expression starting at /home/sabae/.julia/v0.7/MbedTLS/src/MbedTLS.jl:56

I'm guessing that something broke 0.7 compat recently? @quinnj

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions